3 ms·
I've definitely heard c++ described this way.
by dahfizz 7y ago
I've definitely heard c++ described this way.
- Animats 7y agoIt was a superset, once. C++ started as a C preprocessor. But the languages have diverged. It's enough of a superset, though, that C++ hasn't deleted bad features of C, like pointers and arrays being the same thing.
- loeg 7y agoIt was maybe a superset for the brief period between C++98 standardization and C99 standardization the following year.
- _kst_ 7y agoPointers and arrays are not the same thing. See section 6 of the comp.lang.c FAQ, http://www.c-faq.com/ http://www.c-faq.com/ . I doubt that C++ was ever a strict superset of C. Has int class; ever been a valid declaration in C++?
- eesmith 7y agoOnce C++ gained "//" for comments - which was the original release in 1983 - it was no longer a superset: uses_BCPL_style_comments = 1 //* */ 2 ; C99's // support did not restore the superset nature. This means your "once" was almost certainly "never".