digitalmars.D.bugs - [Issue 16002] New: Add __traits(isModule) and __traits(isPackage)
- via Digitalmars-d-bugs (18/18) May 07 2016 https://issues.dlang.org/show_bug.cgi?id=16002
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: nobody puremagic.com Reporter: blm768 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 --
May 07 2016