H1 2015 - C++ integration
Daniel Murphy via Digitalmars-d
digitalmars-d at puremagic.com
Fri Feb 13 10:48:02 PST 2015
"Guillaume Chatelet" wrote in message
news:gvnxmwplwkyfrydwrulq at forum.dlang.org...
> I'm not sure I get your point. In C++ classes without vtables are exactly
> like structs. Also I don't see any difference between a struct or a class
> name mangling on Gnu Linux.
>
> class/struct S{};
> S foo();
>
> foo gets mangled "_Z3foov" if S is a struct or a class.
>
> What did I miss ? Do you have compelling examples ?
This is not a good example, because the return type is clearly not mangled
into the function name. (Because you can't overload on return type.)
void foo(S); should show the problem with some mangling schemes.
More information about the Digitalmars-d
mailing list