DMD 0.148 - scope guard

Kyle Furlong kylefurlong at gmail.com
Sat Feb 25 22:33:57 PST 2006


John Reimer wrote:
> Walter Bright 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
>>
>>
> 
> 
> Nice feature, but rather ugly to look at; although, I'm not sure how 
> something like that could be made to look pretty.  Nonetheless the scope 
> guard looks like something I should read up on.
> 
> Thanks for another good release.
> 
> -JJR

I thought the same, perhaps the "scope" portion is understood? So that the keywords become: onsuccess, onfailure, ...?



More information about the Digitalmars-d mailing list