Development quote of the week
Development quote of the week
Posted Dec 1, 2022 23:06 UTC (Thu) by Karellen (subscriber, #67644)In reply to: Development quote of the week by Wol
Parent article: Development quote of the week
C IS NO LONGER FIT FOR SYSTEMS PROGRAMMING.
Yeah, if by "no longer" you mean "since it was first standardised in 1989". Because that's when UB was defined and its semantics decided upon.
In practice, what the compiler writers are doing is saying "there is no such thing as nonportable constructs", despite the standard explicitly allowing for it.
Not quite. In practice, (modern) compiler writers allow for non-portable constructs, but you have to explicitly opt into them. (If they make sense on the platform you are compiling for. Which they might not, because they're non-portable). Hence GCC's -fwrapv and -fno-delete-null-pointer-checks.