Two options: 1) add an overload that takes typeof(null)
this(typeof(null)) { /* handles the null literal specially */ } 2) Cast null to a specific type when making it: new YourClass(cast(ubyte*) null);
Adam D. Ruppe via Digitalmars-d-learn Wed, 27 May 2015 07:11:32 -0700
Two options: 1) add an overload that takes typeof(null)
this(typeof(null)) { /* handles the null literal specially */ } 2) Cast null to a specific type when making it: new YourClass(cast(ubyte*) null);