On 2012-04-18 20:37, Walter Bright wrote:
You can get a list of classes in the executable at runtime from:foreach (m; ModuleInfo) { if (m) //writefln("module %s, %d", m.name, m.localClasses.length); foreach (c; m.localClasses) { writefln("\tclass %s", c.name); } }
Yeah, and then we're back at the original case: we need runtime reflection. We need to be able to iterate the fields of a class and get/set the values of the fields.
-- /Jacob Carlborg
