Rockthesmurf
Advanced Member
@pmprog you are completely correct that C++ programs can't necessarily compile as C, but I think you have missed the point being made (or put better, I have failed to make my point obvious). You can take C code and compile it as C++, it is then C++ code, and you can't argue there is anything wrong with C++ at this point (after all it is just C code!). So you can write a full game, compiled as C++, yes it could also compile in C, so up to this point there is still no problem with C++. Later in my post I then talk about some of the things that can cause problems with C++, I think we all agree there that it is easy to write C++ code that offends people and certainly won't compile under a C compiler.
It is also worth mentioning that for a while the major C++ 'compilers' actually just converted the C++ code to C code, and then called the C compiler, the major compilers no longer do this, but it gives some idea of the closeness between the languages, especially earlier on.
It is also worth mentioning that for a while the major C++ 'compilers' actually just converted the C++ code to C code, and then called the C compiler, the major compilers no longer do this, but it gives some idea of the closeness between the languages, especially earlier on.