Parsing a string to instantiate classes at runtime
Marduk via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Nov 27 13:02:57 PST 2016
Dear all,
I would like to write a program that:
1. Receives a string from the UI
2. Parses the string
3. Instantiates classes, whose names are contained in the string,
passing parts of the string as constructor arguments.
From my experience with other programming languages, I suppose I
need to define an eval function.
I read in an old post in these forums that with a dynamic mixin
it is possible to add structures and classes at runtime. I
searched "dynamic mixin" but I did not find more information.
Any help will be greatly appreciated.
More information about the Digitalmars-d-learn
mailing list