scope() statements and return

Ola Fosheim Grostad via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 22:37:14 PDT 2014


On Saturday, 4 October 2014 at 05:33:29 UTC, ketmar via 
Digitalmars-d wrote:
>   void myWrapper () nothrow {
>     try throwItAtMe(); catch (LovelyException) {}
>   }
>
>
>   scope(exit) myWrapper();
>
>
> this is perfectly legal, as we not cathcing anything in 
> scope(exit).

Why should these two cases be treated different? Makes no sense,



More information about the Digitalmars-d mailing list