On Thu, 02 Apr 2009 11:20:13 -0400, Eljay <el...@adobe.com> wrote:
Although D 2.0 is a multi-paradigm programming language, it does not
support
two paradigms:
+ dynamic typing
std.variant is a good example of a dynamic typing wrapper for value types.
+ reflective programming
By reflective programming it looks like you mean Properties or Prototype
Design ala Java Script/Lua/MiniD/etc.
(http://en.wikipedia.org/wiki/Prototype-based_programming_language)
With D2.0's compile-time reflection you should be able to implement this
very cleanly.
Steve Yegge has a nice blog on the subject
(http://steve-yegge.blogspot.com/2008/10/universal-design-pattern.html)
which mentions several performance optimizations which are applicable to
D's associative arrays.