DMD 0.148 - scope guard

Ben Hinkle bhinkle at mathworks.com
Mon Feb 27 08:13:24 PST 2006


"Walter Bright" <newshound at digitalmars.com> wrote in message 
news:dtr2fg$2vqr$4 at digitaldaemon.com...
> 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

Note GCC has pretty much the same thing with the "cleanup" attribute 
extension on variables: 
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Variable-Attributes.html 





More information about the Digitalmars-d mailing list