|
|
|
|
|
by webstrand
1293 days ago
|
|
C++ uses name mangling to give names to non-virtual methods. They are no different than a C function that takes a pointer, except they may use a different calling convention. Even if the method is virtual, C++ compilers make an effort to call methods directly without indirection through a vtable wherever possible. |
|
A long term ambition for C++ and more specifically for Bjarne has been UFCS, Universal Function Call Syntax, which a few other languages have. But C++ can't do this today.