dispatch table; symbolic references
Emil
emilper at gmail.com
Mon Jun 10 14:35:59 PDT 2013
did you mean Object.factory() ? It almost does it, but still have
to cast the object to the right class (where I can't use a string
variable it seems) to use it or make all the classes I want to
instantiate this way inherit from the same interface.
thank you bearophile for pointing me in the right direction ...
reading object_.d was fun but did not understand everything in
there and will have to postpone ambitious stuff until I finish
reading the book.
On Saturday, 8 June 2013 at 12:46:40 UTC, bearophile wrote:
...
> 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