Questions about the scope/Exception machinery

Mike Parker via Digitalmars-d digitalmars-d at puremagic.com
Tue May 27 05:59:19 PDT 2014


On 5/27/2014 9:43 PM, Qox wrote:
> nothrow doesn't seem to work with the recent dmd compiler :(
> I know it because _d_local_unwind2() is still called.
>

notrhow doesn't turn off exception handling. It just doesn't allow you 
to throw from a particular function. From inside a nothrow function, you 
can still call functions that throw, but you have to wrap them in 
try..catch blocks and swallow any exceptions that *are* thrown.



More information about the Digitalmars-d mailing list