H1 2015 - C++ integration

Guillaume Chatelet via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 13 06:07:43 PST 2015


On Friday, 13 February 2015 at 13:03:18 UTC, Kagamin wrote:
> It's not like you're free to choose, because struct and class 
> can use different mangling.

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 ?


More information about the Digitalmars-d mailing list