dynamic classes and duck typing

Pelle Månsson pelle.mansson at gmail.com
Tue Dec 1 23:55:17 PST 2009


Walter Bright wrote:
>> But you can do that with the 'with' statement!
> 
> The with goes at the use end, not the object declaration end. Or I read 
> the spec wrong.
So does the scope guard. I think scope guard solves the same problem as 
the with-statement, only it does it in a more flexible and arguably 
sexier way.



More information about the Digitalmars-d mailing list