Finding packages recursively

BLM768 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Nov 23 22:28:09 PST 2015


I'm trying to recursively visit a package and all 
packages/modules within it using metaprogramming. I should be 
able to use __traits(allMembers, somePackage) recursively to get 
all symbols within the package, but is there an easy way to 
determine whether a symbol represents a package, a module, or 
something else?


More information about the Digitalmars-d-learn mailing list