D Exceptions
Daniel Keep
daniel.keep.lists at gmail.com
Tue Jan 26 08:12:30 PST 2010
Steve Teale wrote:
> ...
>
> So it seems there is a safety net in Windows, but not in Linux. Is this how it is supposed to be?
Under Windows, access violations cause the OS to throw an exception.
Since D uses the same EH mechanism as the OS, this integrates nicely.
Under linux, SIGSEGV is a signal, and you can't safely throw exceptions
from signal handlers, so D just aborts.
As far as I understand it, it's a limitation of the way linux is designed.
More information about the Digitalmars-d
mailing list