dispatch table; symbolic references

bearophile bearophileHUGS at lycos.com
Sat Jun 8 05:46:39 PDT 2013


Emil:

> This works, but I am wondering if there is another way. Does D 
> support symbolic references so I could keep the hashtable in a 
> string[string], or even use a string variable holding a class 
> name to instantiate a class ?

There is a create, but I think it's still very limited and I 
think it needs to be improved:
http://dlang.org/phobos/object.html

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list