mangle

Rainer Deyke rainerd at eldwood.com
Thu Jul 1 19:59:41 PDT 2010


On 7/1/2010 20:34, Jonathan M Davis wrote:
> On Thursday, July 01, 2010 19:13:02 Rainer Deyke wrote:
>> Because DMD is stuck with a C-age linker.
> 
> Well, I guess that it just goes to show how little I understand about exactly 
> how linking works when I don't understand what that means. After all, C doesn't 
> using name mangling. Does that mean that name mangling it meant as a namespacing 
> tool to ensure that no D function could possibly have the same linking name as a 
> C function?

That, and to allow for overloaded functions, functions with the same
name in different modules, and member functions.  Each symbol with
external linkage must map to a single unique identifier.  The concerns
are exactly the same as those in C++.


-- 
Rainer Deyke - rainerd at eldwood.com


More information about the Digitalmars-d mailing list