assert(0)

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 7 14:26:51 PST 2015


On Saturday, 7 November 2015 at 21:00:58 UTC, Fyodor Ustinov 
wrote:
> We do not have way to in "scope(failure)" or "scope(exit)" 
> detect - it's "assert" or "throw".

Indeed. But the point is that _all_ Errors (of which AssertError 
is one example) are throwable from `nothrow` functions, and as 
such might not unwind the stack as you would expect.

  — David


More information about the Digitalmars-d mailing list