DMD 0.148 - scope guard
Derek Parnell
derek at psych.ward
Sat Feb 25 19:47:16 PST 2006
On Sun, 26 Feb 2006 13:06:36 +1100, Walter Bright
<newshound at digitalmars.com> wrote:
> Scope guards are a novel feature no other language has. They're based on
> Andrei Alexandrescu's scope guard macros, which have led to considerable
> interest in the idea. Check out the article
> www.digitalmars.com/d/exception-safe.html
Wow! I know of one other language that (almost) implements this.
Does 'scope' mean any type scope, and not just function scope? For
example, can it include module scope? ... if/while/for/foreach scope? ...
block scope?
And I assume 'statement' can be a block of statements ...
on_exit_scope { stmt1; stmt2; ... stmtn;}
--
Derek Parnell
Melbourne, Australia
More information about the Digitalmars-d
mailing list