D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 16002 - Add __traits(isModule) and __traits(isPackage)
Summary: Add __traits(isModule) and __traits(isPackage)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2016-05-07 22:44 UTC by blm768
Modified: 2021-01-03 22:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description blm768 2016-05-07 22:44:05 UTC
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 Dlang Bot 2019-02-23 07:16:14 UTC
@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 Dlang Bot 2019-05-19 08:04:08 UTC
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 Dlang Bot 2021-01-03 22:57:07 UTC
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