DMD 0.148 - scope guard

Walter Bright newshound at digitalmars.com
Mon Feb 27 22:49:02 PST 2006


"Andrew Fedoniouk" <news at terrainformatica.com> wrote in message 
news:dtvkhr$2cf4$1 at digitaldaemon.com...
>
> "Walter Bright" <newshound at digitalmars.com> wrote in message 
> news:dtr8kl$4lm$1 at digitaldaemon.com...
>>
>> "Derek Parnell" <derek at psych.ward> wrote in message 
>> news:op.s5j942tp6b8z09 at ginger.vic.bigpond.net.au...
>>> Wow! I know of one other language that (almost) implements this.
>>
>> Which one?
>>
>
> If I understand this correctly Ruby has something similar
> http://www.rubycentral.com/book/tut_exceptions.html
>
> But this is the same try-catch-finally I guess
> as these on_scope_*** too, btw.

Ruby's rescue thing looks like try-catch. on_scope is much more than 
try-catch, or I wouldn't have implemented it <g>. 





More information about the Digitalmars-d mailing list