Make D a dynamic language.

sclytrack sclytrack at pi.be
Tue Feb 5 02:26:40 PST 2008


Make D a dynamic language.

struct, class, dynamic.

Introduce a dynamic type in D. Where you can add methods to it at runtime.
Speed should be less of an issue. Provide a simple syntax in D to make the
method calls.

var obj = new CustomDynamicObject();

obj.doStuff();
//not checked at compile time since it is dynamic. doStuff might not exist,
but it still compiles.

obj[x] = 10;   //Support for the usual syntax.


/me hides



More information about the Digitalmars-d mailing list