News for hackers. Stuff that matters.
Re:Porting to GCC 14: C language issues by WalterBright on Monday February 19, 2024 @08:30PM (#39436993)
Anybody who uses "int short" should be keel-hauled. That nonsense did not make its way into D!
Re:Porting to GCC 14: C language issues by Gibbon1 on Monday February 19, 2024 @10:51PM (#39437868)
The lack of memory safe casts drives me a bit batty.

You would think casting something as signed or unsigned wouldn't promote to a int / unsigned int. Ditto for const and unconst.

Re:Porting to GCC 14: C language issues by WalterBright on Tuesday February 20, 2024 @02:33AM (#39438853)
When the first C++ Standard (C89) was being created, about half the compilers implemented "sign preserving" semantics, which is what you're advocating, and the other half implemented "value preserving" semantics.

A great battle ensued, and many champions were slain.

The value preserving folks carried the field, and the sign preserving folks changed their compilers.