Should an 'extern(C++, "ns"):' override previous ones in the same scope?

Max Samukha maxsamukha at gmail.com
Sat Sep 7 15:15:44 UTC 2019


extern(C++, "ns1"):
extern(C++, "ns2"): // Not in nested scope. Should it supersede?
void foo();

pragma(msg, foo.mangleof); // _ZN3ns13ns23fooEv instead of 
expected _ZN3ns23fooEv

Is that by design?


More information about the Digitalmars-d-learn mailing list