Bug 15512 – extern(C++, ns) should consider taking a string

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-01-04T12:27:22Z
Last change time
2018-09-19T20:20:26Z
Keywords
C++, industry
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2016-01-04T12:27:22Z
The set of valid C++ namespaces and valid D identifiers is not identical. It would be better if extern(C++, ns) was a string; extern(C++, "ns"), then it wouldn't be reduced to the subset of valid D identifiers, which would lead to less binding edge cases.
Comment #1 by github-bugzilla — 2018-09-19T00:06:39Z
Commit pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/d9747003d45d205ff5348bfbe3f5d9779ae62732 Fix Issue 15512 - Implement better C++ name mangling feature.
Comment #2 by bugzilla — 2018-09-19T20:20:26Z