Objective-D, reflective programming, dynamic typing

Robert Jacques sandford at jhu.edu
Thu Apr 2 11:14:26 PDT 2009


On Thu, 02 Apr 2009 11:20:13 -0400, Eljay <eljay at 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.




More information about the Digitalmars-d mailing list