On Thursday, 22 January 2015 at 14:29:59 UTC, anonymous wrote:
o needs to be typed as Object:Object o = new MyClass(); nullIt(o);
Alternatively, templatize nullIt: void nullIt(O)(ref O o) {o = null;} auto o = new MyClass(); nullIt(o);
anonymous via Digitalmars-d-learn Thu, 22 Jan 2015 06:40:41 -0800
On Thursday, 22 January 2015 at 14:29:59 UTC, anonymous wrote:
o needs to be typed as Object:Object o = new MyClass(); nullIt(o);
Alternatively, templatize nullIt: void nullIt(O)(ref O o) {o = null;} auto o = new MyClass(); nullIt(o);