#dbugfix 18493

Mike Franklin slavo5150 at yahoo.com
Tue Apr 17 02:09:35 UTC 2018


On Tuesday, 17 April 2018 at 00:27:07 UTC, Nicholas Wilson wrote:

> It is odd though since
>
> void foo (){}
> extern(C) void main()
> {
>     scope(exit) foo();
> }
>
> compiles and runs with -betterC

I believe `scope(exit)` is fine because it is basically 
try-finally, but `scope(failure)` won't work because it is 
try-catch.

Mike


More information about the Digitalmars-d mailing list