ctrl+c and destructors
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Tue Oct 1 13:42:52 PDT 2013
On Tue, 01 Oct 2013 21:55:16 +0200
"monarch_dodra" <monarchdodra at gmail.com> wrote:
> On Tuesday, 1 October 2013 at 03:58:04 UTC, Nick Sabalausky wrote:
> > You know, this sounds like something that really should fall
> > squarely in
> > the category of "do the right thing by default". Is there any
> > reason
> > druntime can't be made to handle this better by default?
>
> Well, arguably, a segfault is a catastrophic error, even more
> serious than an assert.
>
> I'm not sure what "the right thing" would even be, apart from
> dying right there and then...?
>
> Even just throwing an error could be problematic (AFAIK).
I'm not talking about segfaults, I'm talking about the OP's issue of
a mere Ctrl-C causing cleanup code to not get executed.
More information about the Digitalmars-d
mailing list