dynamic classes and duck typing

bearophile bearophileHUGS at lycos.com
Fri Nov 27 16:34:19 PST 2009


Walter Bright:

> One thing Java and Python, Ruby, etc., still hold over D is dynamic 
> classes, i.e. classes that are only known at runtime, not compile time. 

I see, you want a Swiss army knife language :o)

Before choosing a design I suggest to look at how both Java and C#4 have done it, few random links about C#4:
http://msdn.microsoft.com/en-us/library/dd264736%28VS.100%29.aspx
http://blogs.msdn.com/cburrows/archive/2008/10/27/c-dynamic.aspx
http://geekswithblogs.net/sdorman/archive/2008/11/16/c-4.0-dynamic-programming.aspx

Similar links can be found for the invokedynamic of Java VM.

Bye,
bearophile



More information about the Digitalmars-d mailing list