News for hackers. Stuff that matters.
Re:C2x: the next real revision of the C standard by kazinator on Monday November 12, 2018 @04:24PM (#18435991)
C++ compilers do not have issues with fundamental C idioms.

I maintain a significant body of code which compiles as C or C++. The executable size and performance are about the same.

A C++ compiler will, of course, have "issues" with C99 and C11 features, that's for sure.

Re:C2x: the next real revision of the C standard by kevin_thibedeau on Monday November 12, 2018 @08:28PM (#18437626)
Running without exceptions is one C idiom. RAII, operator-new, and many other C++ features break down without them.
Re:C2x: the next real revision of the C standard by kazinator on Monday November 12, 2018 @10:37PM (#18438337)
Obviously, I do not use RAII, operator new or exceptions in a code base that compiles as C or C++.

Here let me note that I have not gone out of the way to disable anything in C++. I have not disabled EH in the compiler, or RTTI or anything. Yet, the executable size is close to the C one, and the performance is basically the same.

Re:C2x: the next real revision of the C standard by jcelerier on Tuesday November 13, 2018 @03:25AM (#18439513)
> Running without exceptions is one C idiom

well, did you know that for instance the windows C library was implemented in C++ ? and yet we don't see it throwing exceptions left and right.