Loop through all modules and module members?
bearophile
bearophileHUGS at lycos.com
Sat Jan 1 02:14:10 PST 2011
%u:
> I would like to perform compile-time reflection on a module (such as
> enumerating all the classes inside the module) and/or on all modules in the
> code -- are either of these possible? And if so, how?
You may add your enhancement requests here, explaining why you need them:
http://d.puremagic.com/issues/show_bug.cgi?id=4476
At the moment the static reflection is not able to do everything. Listing all modules in the code looks like work for rmdm. Listing all classes in a module seems work for __traits/meta, plus a compile-time Filter.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list