News for hackers. Stuff that matters.
Re:What is your favorite C programming trick? (2009) by flohofwoe on Sunday November 22, 2020 @01:27PM (#25179667)
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.

Re:What is your favorite C programming trick? (2009) by pjmlp on Sunday November 22, 2020 @02:22PM (#25180200)
A 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.