Mea Culpa

Sean Kelly sean at invisibleduck.org
Fri Mar 7 18:23:02 PST 2008


== Quote from Jason House (jason.james.house at gmail.com)'s article
> Christopher Wright wrote:
> > Jason House wrote:
> >> 1. Run-time debug mode checks for null references.
> >>    (Maybe -debug=null or something...)
> >
> > Or just catching SIGSEGV and throwing an exception.
> Can you provide a link to code that does this correctly for all the latest D
> compilers?  I have yet to find code that works for me in all cases (I have
> copied and pasted a few variants into my code without success).  I'm
> thinking of dmd 1.x, dmd 2.x, and gdc 0.24...  As well as windows, linux,
> mac, 64 bit windows, and 64 bit linux.

It's not technically legal to throw an exception from a signal handler, though it seems to actually work
on many OSes.


Sean



More information about the Digitalmars-d mailing list