While working on a set of bindings to a C++ library, I found that it would be useful to have __traits to determine whether a symbol represents a module and/or package. I've implemented a solution that appears to work; see PR #5290. https://github.com/dlang/dmd/pull/5290
@blm768 updated dlang/dmd pull request #5290 "New __traits: isModule and isPackage" fixing this issue: - fix Issue 16002 - Add __traits(isModule) and __traits(isPackage) https://github.com/dlang/dmd/pull/5290
dlang/dmd pull request #5290 "New __traits: isModule and isPackage" was merged into master: - 01ff106d31ea02ae9f161aea7061feb5695eeb39 by Benjamin L. Merritt: fix Issue 16002 - Add __traits(isModule) and __traits(isPackage) https://github.com/dlang/dmd/pull/5290
dlang/dmd pull request #12093 "[dmd-cxx] Backport more recent traits to the C++ port" was merged into dmd-cxx: - 0d43f6419e3e1d679a76667c3e44d7cbd3375539 by Benjamin L. Merritt: [dmd-cxx] fix Issue 16002 - Add __traits(isModule) and __traits(isPackage) https://github.com/dlang/dmd/pull/12093