DMD 0.148 - scope guard

Lionello Lunesu lio at remove.lunesu.com
Mon Feb 27 02:56:14 PST 2006


> Now we just need something sensible for on_scope_success and we're done 
> ; )

"leave" seems like a good enough word, but since on_scope_failure and 
on_scope_success are mutually exclusive, we could use ~catch, or !catch. 
Pretty ugly too, but no new keywords.

on_scope_exit => finally
on_scope_failure => catch
on_scope_success => ~catch





More information about the Digitalmars-d mailing list