C++ std::string, std::vector and name mangling

Guillaume Chatelet via Digitalmars-d digitalmars-d at puremagic.com
Tue Dec 8 04:23:23 PST 2015


A while ago I proposed this PR [1] to add support for C++ 
std::string, std::vector to D.

It's blocked on invalid name mangling for C++ templates [2].
I started fixing src/cppmangle.d [3] but it needs a complete 
rewrite.

Because mangling rules are complex, I took some time to gather my 
findings here:
https://github.com/gchatelet/gcc_cpp_mangling_documentation

Once I know precisely how mangling works, I'll rewrite the 
linux/osx part of src/cppmangle.d.

I'm short on spare time so if you're willing to help, drop me a 
line :)


--
1 - https://github.com/D-Programming-Language/druntime/pull/1316
2 - https://issues.dlang.org/show_bug.cgi?id=14178
3 - 
https://github.com/D-Programming-Language/dmd/blob/master/src/cppmangle.d


More information about the Digitalmars-d mailing list