scope block do not handle failure, but try-catch does

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Dec 15 01:36:22 PST 2014


On 15.12.2014 12:22, "Marc Schütz" <schuetzm at gmx.net>" wrote:
>
> Unfortunately you don't have access to the exception object inside the
> `scope(failure)` block.

Ah, yes, it has to be without msg.msg
scope(failure) writeln("Something is wrong");


More information about the Digitalmars-d-learn mailing list