"null this"

Mineko uminekorox at gmail.com
Mon Dec 9 12:16:16 PST 2013


On Monday, 9 December 2013 at 19:53:09 UTC, Adam D. Ruppe wrote:
> When you used the class, did you remember to new it?
>
> Unlike C++, "Io io;" in D would be null. You have to create it 
> with "io = new Io();"

You got me thinking in the right direction, turns out I was 
putting in a bad parameter at the places like Io session ... 
session = new IO(...)

Thank you very much. :)


More information about the Digitalmars-d-learn mailing list