August 14, 2015 Re: Can the compiler catch my stupid mistake? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jack Stouffer | 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 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply