C++/C mangleof inconsistency for OS X

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 21 18:46:58 PDT 2015


"Dan Olson"  wrote in message news:m28udmoj3v.fsf at comcast.net...

> An observation on OSX w/ 2.067: mangleof for C++ (and D) names produces
> the actual object file symbol while mangleof for C names strips a
> leading underscore.
>
> Is this intended?  If so what is rationale?

Until fairly recently .mangleof was completely broken for eg extern(C++) 
mangling on windows.  I'm not surprised there are still bugs there.  Ideally 
.mangleof will give exactly the string that ends up in the object file. 



More information about the Digitalmars-d mailing list