MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/8g8ix6/c_is_not_a_lowlevel_language_acm_queue/dya6iq1
r/programming • u/dgryski • May 01 '18
303 comments sorted by
View all comments
Show parent comments
14
Most would but, for example, you can have a variable named "class" or "new" in C and a C++ compiler would complain.
4 u/meneldal2 May 02 '18 #define class notclass 3 u/Charles_Dexter_Ward May 02 '18 Yes, there are ways to modify C code to compile under C++. The point was that C++ is not a proper superset of C and there are valid C programs that do not compile under strict C++.
4
#define class notclass
3 u/Charles_Dexter_Ward May 02 '18 Yes, there are ways to modify C code to compile under C++. The point was that C++ is not a proper superset of C and there are valid C programs that do not compile under strict C++.
3
Yes, there are ways to modify C code to compile under C++. The point was that C++ is not a proper superset of C and there are valid C programs that do not compile under strict C++.
14
u/Charles_Dexter_Ward May 01 '18
Most would but, for example, you can have a variable named "class" or "new" in C and a C++ compiler would complain.