Reflection in D

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 27 13:14:18 PST 2017


On Friday, 27 January 2017 at 21:02:13 UTC, medhi558 wrote:
> Hello, I would like to know if it is possible to recover all 
> classes in the project in D.

Yes, `foreach(mod; ModuleInfo) foreach(lc; mod.localClasses)`... 
but why do you want it? That facility is kinda limited in doing 
many things with.


More information about the Digitalmars-d-learn mailing list