compiler support added for precise GC
Jacob Carlborg
doob at me.com
Wed Apr 18 13:28:08 PDT 2012
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
More information about the Digitalmars-d
mailing list