Bug 18149 – Add a compiler trait to detect if a function is @disable

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-31T15:16:05Z
Last change time
2021-01-03T22:57:15Z
Keywords
pull
Assigned to
No Owner
Creator
Basile-z
Blocks
11747

Comments

Comment #0 by b2.temp — 2017-12-31T15:16:05Z
Although there's not much concrete application (since a call to a @disabled is already statically checked) for now there is no way to know if a function is @disable.
Comment #1 by b2.temp — 2018-01-13T19:20:51Z
Comment #2 by github-bugzilla — 2018-01-18T22:29:49Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/43ef5ce21db45461138a0a313a9219ef15bdd900 fix issue 18149 - Add a compiler trait to detect if a function is @disabled https://github.com/dlang/dmd/commit/c68ae009586c128182c7ce268a9dd58f8d4d6969 Merge pull request #7569 from BBasile/issue-18149 fix issue 18149 - Add a compiler trait to detect if a function is @disable merged-on-behalf-of: unknown
Comment #3 by dlang-bot — 2021-01-03T22:57:15Z
dlang/dmd pull request #12093 "[dmd-cxx] Backport more recent traits to the C++ port" was merged into dmd-cxx: - ccab65f15e2f28b4ab58a230aade08e6ce49be54 by Basile Burg: [dmd-cxx] fix issue 18149 - Add a compiler trait to detect if a function is @disabled https://github.com/dlang/dmd/pull/12093