flagging runtime null dereferencing

Robert Fraser fraserofthenight at gmail.com
Fri Nov 14 20:03:14 PST 2008


Chad J wrote:
> Hell, just the naive version of inserting assert( c !is null, ... ); 
> before dereferences would be extremely awesome.  I've already spent too 
> much of my life on this crap.

Yup, yup; agreed. Thankfully, Windows raises a structured exception for 
an AV, and using the Team0xf backtrace hack, it works just as good as a 
NPE raised in Java/C#.



More information about the Digitalmars-d mailing list