dynamic classes and duck typing

Don nospam at nospam.com
Tue Dec 1 10:59:59 PST 2009


Bill Baxter wrote:
> On Mon, Nov 30, 2009 at 3:20 PM, Alvaro Castro-Castilla
> <alvcastro at yahoo.es> wrote:
>> Walter Bright Wrote:
>>
>>> Simen kjaeraas wrote:
>>>> I'm already in love with this feature.
>>> So am I. It seems to be incredibly powerful.
>>>
>>> Looks to me you can do things like:
>>>
>>> ...
>>>
>>> 5. the already mentioned "swizzler" functions that are generated at
>>> runtime based on the name of the function
> 
> And once again we see Clugston's Law at work.  As soon as you figure
> out how to do one thing in D, a new compiler feature comes along that
> makes it a one-liner.  :-)

I love it!



More information about the Digitalmars-d mailing list