News for hackers. Stuff that matters.
Re:New C features in GCC 13 by klodolph on Thursday May 04, 2023 @09:52AM (#35815338)
You end up having to turn a lot of C++ features off in order to get the experience you want in certain environments. In an application running on a modern Windows/Linux/Mac system, it’s no big deal to use those features.

Some platforms also just don’t have C++ compilers. Yes, they still exist. You buy some microcontroller, download an IDE from the manufacturer's web site, and you get some version of C with a couple extensions to it. And then there are all the random incompatibilities between C and C++, where C code doesn’t compile as C++, or gives you a different result.

Re:New C features in GCC 13 by jcelerier on Thursday May 04, 2023 @10:12AM (#35815630)
What's "a lot of features" ? -fno-rtti, -fno-exceptions?

> Some platforms also just don’t have C++ compilers

It's not like they're going to have C23 compilers either

Re:New C features in GCC 13 by flohofwoe on Thursday May 04, 2023 @10:33AM (#35815992)
> It's not like they're going to have C23 compilers either

Niche compilers like SDCC (https://sdcc.sourceforge.net/) are actually keeping track of recent C language improvements quite well.

Re:New C features in GCC 13 by klodolph on Thursday May 04, 2023 @10:24AM (#35815843)
C++ has a lot of funny rules when it comes to constructors and initializers. It's easy to accidentally to do something unintended, and end up with code that relies on initialization order.