Can the compiler catch my stupid mistake?
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Fri Aug 14 11:16:40 PDT 2015
On 8/14/15 2:06 PM, Jack Stouffer wrote:
> On Friday, 14 August 2015 at 18:02:10 UTC, Meta wrote:
>> You're dereferencing a null pointer
>
> Oh, I see now, Thanks.
>
> Is there any way that the D runtime can throw a null pointer exception,
> a la Java or C#?
Are you on Linux?
If so there is an undocumented option for this:
https://github.com/D-Programming-Language/druntime/blob/master/src/etc/linux/memoryerror.d#L33
Otherwise, no. And it won't be added (Walter has made this repeatedly
and abundantly clear (and I agree with him) ).
-Steve
More information about the Digitalmars-d
mailing list