Liste des Groupes | Revenir à cl c |
David Brown <david.brown@hesbynett.no> writes:That is a lot more accurate than the way I described it.On 13/07/2024 20:07, Richard Damon wrote:[...]I wouldn't quite put it that way.The question being since most C compilers are also C++ compilers,>
they somethings accept this sort of C++ism as an extension.
Actually, the vast majority of C compilers are /not/ also C++
compilers. But the most popular C compilers, by a significant
margin, are C++ compilers.
gcc, clang, and Microsoft provide both C and C++ compilers, but they're
separate applications, perhaps invoked from a common driver program.
They typically share the same backend, but the frontends are separate.
I wouldn't expect to see any code that parses "int class;" and decides
whether it's a syntax error based on which language is being compiled.
The C and C++ frontends might share some code, but they're separate
applications.
Les messages affichés proviennent d'usenet.