First Steps: Dynamic class instantiation

Thomas thc at forestfactory.de
Sat Jan 27 22:00:39 PST 2007


Kirk McDonald Wrote:

> Thomas wrote:
> > 
> > I thought of doing this by creating classes for each functionality implementing the same interface and creating an array in main() that somehow refers to these classes. There the trouble starts.
> > 
> This can't really be done in D, which is statically typed. Languages 
> like PHP are dynamically typed. You'll have to do some re-thinking of 
> your design, I think.

Thanks a lot. I will exercise a little more with that information.



More information about the Digitalmars-d mailing list