Why dont dlang check NullPointer?

Gary Willoughby via Digitalmars-d digitalmars-d at puremagic.com
Mon Apr 6 08:17:21 PDT 2015


On Friday, 27 March 2015 at 03:46:49 UTC, zhmt wrote:
> In short words, I want to catch something like 
> NullPointerException.
>
> Is this possible?

Yes on Linux use: etc.linux.memoryerror which is undocumented for 
some reason.

https://github.com/D-Programming-Language/druntime/blob/master/src/etc/linux/memoryerror.d


More information about the Digitalmars-d mailing list