assert(0)

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Sat Nov 7 12:40:47 PST 2015


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.

  — David


More information about the Digitalmars-d mailing list