November 24, 2015 Finding packages recursively | ||||
---|---|---|---|---|
| ||||
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? |
Copyright © 1999-2021 by the D Language Foundation