On Sun, 21 Jun 2009 13:14:17 -0700, Walter Bright
<newshou...@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).


Reply via email to