Why dont dlang check NullPointer?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Mar 27 02:21:14 PDT 2015


> In short words, I want to catch something like 
> NullPointerException.
> Is this possible?

One solution is to add null tests to D in nonrelease mode. A 
better solution is to modify D to remove all or most chances of 
dereferencing null pointers and class references.


More information about the Digitalmars-d mailing list