dereferencing null

Adam D. Ruppe destructionator at gmail.com
Mon Mar 5 14:58:04 PST 2012


On Monday, 5 March 2012 at 22:50:46 UTC, H. S. Teoh wrote:
> In theory, we *could* have druntime install a handler for 
> SIGSEGV upon program startup that prints a stacktrace and
> exits

This sounds like a good idea to me.

> (or do whatever the
> equivalent is on Windows, if compiled on Windows).

On Windows, hardware exceptions are turned into D exceptions
by the SEH system.

The source is in druntime/src/rt/deh.d

You can catch null pointers on Windows if you want; the
OS makes this possible.


More information about the Digitalmars-d mailing list