4 ms·
There's a surprising amount of perfectly valid C code that's not valid C++ (not even taking regrettable design warts like VLAs into account). The "common subset
by flohofwoe 6y ago
There's a surprising amount of perfectly valid C code that's not valid C++ (not even taking regrettable design warts like VLAs into account). The "common subset" of C and C++ is both a subset of C, and a subset of C++, e.g. C++ has forked C and turned its C subset into a non-standard dialect.
It's interesting that the other C descendant Objective-C has decided to "respect" its C subset instead of messing with it, with the result that new C standards are automatically supported in ObjC.
- pjmlp 6y agoA descendant that would be dead by now wouldn't Apple decided to buy NeXT. VLAs are dead, a broken design fixed in C11 by removing it from the standard, no idea why everyone keeps referring to them.