assert(0)
Kapps via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 7 12:49:59 PST 2015
On Saturday, 7 November 2015 at 20:48:24 UTC, Fyodor Ustinov
wrote:
>
> "assert" not guaranteed caught by
> "scope(exit)/scope(failure)/finally" ???? Where I can read
> about this in documentation?
>
> WBR,
> Fyodor.
Right. Errors indicate that something went fundamentally wrong in
your program and no recovery is possible (indicates a programming
error rather than an environmental error generally). So at this
point the only thing to do is to close the program and stop
execution. Theoretically anything might be wrong at this point,
so even executing things like your finally or scope blocks could
lead to corruption.
More information about the Digitalmars-d
mailing list