"Not so bad idea considering that any C program, with modern compilers, can be 
compiled as cpp with no problem."

That is wildly incorrect. C and C++ (which is what I assume "cpp" means) are 
different languages.

Here's a C program that conforms to ISO 9899-1999. Try compiling it as C++.

-----
#include <stdlib.h>
char *new(void) {return malloc(1);}
int main(void) {new(); return EXIT_SUCCESS;}
-----

C++ has additional keywords, which invade the C application identifier 
namespace. It has different syntax and semantics for the void keyword, 
particularly in the case of function declarations. It has different semantics 
for void* pointers. It has different rules for numeric-parameter promotions. 
And so on.

People who think C++ is a superset of C are sadly mistaken, and programmers who 
act on that assumption are dangerous.

Michael Wojcik 
Technology Specialist, Micro Focus 



This message has been scanned for malware by Websense. www.websense.com
:��I"Ϯ��r�m����
(����Z+�K�+����1���x��h����[�z�(����Z+���f�y�������f���h��)z{,���

Reply via email to