C++ namespace mangling: bug or me being stupid?

Atila Neves via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 29 01:40:44 PDT 2017


On Tuesday, 28 March 2017 at 16:30:19 UTC, kinke wrote:
> That's a mangling compression scheme (possibly tunable via gcc 
> options), from 
> https://github.com/gchatelet/gcc_cpp_mangling_documentation:
>> To save space a compression scheme is used where symbols that 
>> appears multiple times are then substituted by an item from 
>> the sequence : S_, S0_, S1_, S2_, etc ...
>
> As to nested C++ namespaces - `extern(C++, ns1) { ... 
> extern(C++, ns2) { ... } }` should work in a single D file.

Not only good to know, this... fixed it. So I was being stupid. 
Thanks!

Atila


More information about the Digitalmars-d-learn mailing list