scope() statements and return

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 7 07:08:33 PDT 2014


On 10/07/2014 03:57 PM, ketmar via Digitalmars-d wrote:
> On Tue, 07 Oct 2014 14:59:52 +0200
> Timon Gehr via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>
>> What's the point anyway?
> non-final try/catch will not make function "nothrow".
>

void doStuff(){ }

void main() nothrow{
     try{ doStuff(); }
     catch assert(0);
}



More information about the Digitalmars-d mailing list