https://issues.dlang.org/show_bug.cgi?id=16002
Issue ID: 16002 Summary: Add __traits(isModule) and __traits(isPackage) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nob...@puremagic.com Reporter: blm...@gmail.com 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 --