dynamic classes and duck typing

Walter Bright newshound1 at digitalmars.com
Tue Dec 1 03:16:47 PST 2009


Ary Borenszweig wrote:
> Can you show examples of points 2, 3 and 4?

Have opDispatch look up the string in an associative array that returns 
an associated delegate, then call the delegate.

The dynamic part will be loading up the associative array at run time.



More information about the Digitalmars-d mailing list