Bug 16002 – Add __traits(isModule) and __traits(isPackage)

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-07T22:44:05Z
Last change time
2021-01-03T22:57:07Z
Keywords
pull
Assigned to
No Owner
Creator
blm768

Comments

Comment #0 by blm768 — 2016-05-07T22:44:05Z
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
Comment #1 by dlang-bot — 2019-02-23T07:16:14Z
@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
Comment #2 by dlang-bot — 2019-05-19T08:04:08Z
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
Comment #3 by dlang-bot — 2021-01-03T22:57:07Z
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