[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: name-mangling
From: |
Guy Harrison |
Subject: |
Re: name-mangling |
Date: |
Sun, 26 Dec 2004 21:00:14 GMT |
User-agent: |
KNode/0.7.7 |
Chetan wrote:
It's compiler specific.
> Why
Consider...
int foo(void)
void foo(const char[])
When you call foo() the compiler will attempt to invoke the appropriate
function but, as they're both called "foo", which is it to call? The "foo"
symbol gets mangled (changed to another name) that both describes "foo"
plus the arguments/return values that "foo" takes.
> and how name-mangling is done in c++?
Implementation defined. If you can invent a workable name-mangler then yours
is as valid as everyone else's.
- name-mangling, Chetan, 2004/12/22
- Re: name-mangling,
Guy Harrison <=