On Thu, 06 Nov 2014 20:13:02 +0000
"Nordlöw" via Digitalmars-d-learn <[email protected]>
wrote:

> On Wednesday, 5 November 2014 at 11:39:21 UTC, Marc Schütz wrote:
> > If you're on Linux, you can turn SEGVs into Errors:
> >
> >     import etc.linux.memoryerror;
> >     registerMemoryErrorHandler();
> 
> Why isn't such a useful feature activated by default? Performance 
> reasons?
'cause it's not really that useful. uncaught (by the proper checks)
segmentation fault is the serious bug, program must crach and spit out
postmortem dump. without interceptions crach point (which is written
into the dump too) will be right at the place where it shots it's foot.
and with signal handler installed... who knows?

crash+coredump is alot more useful than intercepting error and...
trying to recover from undefined state? or just exit to OS, losing
valuable information about a crash?

Attachment: signature.asc
Description: PGP signature

Reply via email to