Suggestion: Syntactic sugar for Exception handling in D2
Max Samukha
outer at space.com
Sun Jun 21 14:06:08 PDT 2009
On Sun, 21 Jun 2009 13:14:17 -0700, Walter Bright
<newshound1 at digitalmars.com> wrote:
>I suggest looking at D's scope guard statements, which replace most uses
>of try statements.
>
>http://www.digitalmars.com/d/1.0/statement.html#ScopeGuardStatement
I don't think the example provided by the original poster can be
implemented with scope guards because it's impossible to access the
exception object in scope(failure).
More information about the Digitalmars-d
mailing list