Iterate all visible symbols, even from imported modules

BLM768 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 18 14:00:56 PDT 2016


On Monday, 18 July 2016 at 13:00:16 UTC, Lodovico Giaretta wrote:
>     // how do I discover that "std" is a package?

I've got a DMD pull request that adds __traits(isPackage, 
someSymbol), but it's stuck waiting for approval. If and when it 
gets merged, it could be useful for that.

https://github.com/dlang/dmd/pull/5290


More information about the Digitalmars-d-learn mailing list