D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s
Summary: add __traits(getLinkage, s) to the the linkage of symbol s
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:
: 17150 (view as issue list)
Depends on:
Blocks:
 
Reported: 2017-05-22 22:37 UTC by Walter Bright
Modified: 2020-03-21 03:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Walter Bright 2017-05-22 22:37:04 UTC
Passing symbol 's' to __traits(getLinkage, s) will return one of:

"D"
"C"
"C++"
"Windows"
"Pascal"
"Objective-C"
"System"
Comment 1 uplink.coder 2017-05-22 23:18:00 UTC
Are you already implementing it ?
Or is it up for grabs ?
Comment 2 Walter Bright 2017-05-22 23:37:37 UTC
https://github.com/dlang/dmd/pull/6822
Comment 3 Walter Bright 2017-05-22 23:41:01 UTC
std.traits.functionLinkage() needs updating to use it!
Comment 4 github-bugzilla 2017-05-23 02:40:42 UTC
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f3dcdb437facea8195855ca86f1915e1487b8ae4
fix Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s

https://github.com/dlang/dmd/commit/31a8770f17f024bf96a2618e4bff74f67121d72b
Merge pull request #6822 from WalterBright/fix17419

fix Issue 17419 - add __traits(getLinkage, s) to the the linkage of s…
Comment 5 Walter Bright 2017-05-23 04:28:00 UTC
https://github.com/dlang/dlang.org/pull/1659
Comment 6 github-bugzilla 2017-06-07 01:55:31 UTC
Commits pushed to master at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/7b1e803bc1489573f70da214e173dd5e282f8ea5
Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s

https://github.com/dlang/dlang.org/commit/db60ee382b924de9e3f59954c3beb4e47370083e
Merge pull request #1659 from WalterBright/getLinkage

Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s
Comment 7 github-bugzilla 2017-06-17 11:35:03 UTC
Commits pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/7b1e803bc1489573f70da214e173dd5e282f8ea5
Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s

https://github.com/dlang/dlang.org/commit/db60ee382b924de9e3f59954c3beb4e47370083e
Merge pull request #1659 from WalterBright/getLinkage
Comment 8 github-bugzilla 2017-08-07 13:16:18 UTC
Commits pushed to newCTFE at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/f3dcdb437facea8195855ca86f1915e1487b8ae4
fix Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s

https://github.com/dlang/dmd/commit/31a8770f17f024bf96a2618e4bff74f67121d72b
Merge pull request #6822 from WalterBright/fix17419
Comment 9 github-bugzilla 2017-08-14 23:55:45 UTC
Commits pushed to newCTFE at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/7b1e803bc1489573f70da214e173dd5e282f8ea5
Issue 17419 - add __traits(getLinkage, s) to the the linkage of symbol s

https://github.com/dlang/dlang.org/commit/db60ee382b924de9e3f59954c3beb4e47370083e
Merge pull request #1659 from WalterBright/getLinkage
Comment 10 basile-z 2017-11-03 18:44:08 UTC
*** Issue 17150 has been marked as a duplicate of this issue. ***