dynamic classes and duck typing

Bill Baxter wbaxter at gmail.com
Mon Nov 30 16:19:29 PST 2009


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.  :-)

--bb



More information about the Digitalmars-d mailing list