Templates at runtime
Steven Schveighoffer
schveiguy at yahoo.com
Fri Feb 13 05:55:54 PST 2009
"Christopher Wright" wrote
> Justin wrote:
>> Is there a way to "find" a classinfo for such a class at runtime?
>
> The slow way:
>
> foreach (modul; ModuleInfo)
> foreach (info; modul.localClasses)
> if (info.name == name) return info;
> return null;
If you look at the source for ClassInfo.find, this is exactly what it does.
So that probably won't work in this case.
-Steve
More information about the Digitalmars-d
mailing list