assert(0)
rsw0x via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 7 18:51:31 PST 2015
On Saturday, 7 November 2015 at 22:26:53 UTC, David Nadlinger
wrote:
> 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
Dumb question, does nothrow affect codegen?
More information about the Digitalmars-d
mailing list