null dereference

luka8088 luka8088 at owave.net
Sat Mar 15 04:43:09 PDT 2014


On 15.3.2014. 12:25, bearophile wrote:
> luka8088:
> 
>> I was thinking and I am not sure about the reason for not having some
>> king of safeguard for null dereferencing in version(assert)/debug builds.
> 
> Eventually reference deference in D will be guarded by an assert in
> non-release builds. This desire is a raising tide that eventually can't
> be stopped.
> 
> Bye,
> bearophile

I am very glad to hear that! It is very frustrating for a program to
segfault without giving any information (on linux) even in debug mode.




More information about the Digitalmars-d mailing list