assert(0)

Fyodor Ustinov via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 7 12:48:22 PST 2015


On Saturday, 7 November 2015 at 20:40:49 UTC, David Nadlinger 
wrote:
> On Saturday, 7 November 2015 at 20:38:20 UTC, Fyodor Ustinov 
> wrote:
>> 2. Without "-release" assert(0) launches scope(exit), 
>> scope(failure) and "finally" blocks. I.e. we get a completely 
>> different behavior in "-release" and not "-release" mode.
>
> This is not guaranteed to happen for Errors either, which is 
> part of the reason why you should pretty much never catch them.

"assert" not guaranteed caught by 
"scope(exit)/scope(failure)/finally" ???? Where I can read about 
this in documentation?

WBR,
     Fyodor.


More information about the Digitalmars-d mailing list