K
Keith Thompson
jacob navia said:And this means that both languages are binary compatible, hence very
close, as I am arguing since quite a few posts.
No, C and C++ are not "binary compatible"; that's not even a
meaningful statement.
A given *implementation* of C might be binary compatible with a given
*implementation* of C++. My understanding (I'm not a C++ expert) is
that C++'s extern "C" feature allows you to invoke a C function from a
C++ program only if the two implementations happen to be binary
compatible. It's very common that such implementations are available
(possibly from the same vendor), but I'm not aware of anything in
either standard that requires it.
[remaining jacobspeak snipped]