dynamic classes and duck typing

Walter Bright newshound1 at digitalmars.com
Mon Nov 30 14:02:46 PST 2009


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:

1. hook up to COM's IDispatch

2. create 'classes' at runtime

3. add methods to existing classes (monkey patching) that allow such 
extensions

4. provide an easy way for users to add plugins to an app

5. the already mentioned "swizzler" functions that are generated at 
runtime based on the name of the function



More information about the Digitalmars-d mailing list