3 ms·
Indeed, the standard even says one of the possible effects of UB is "behaving during translation or program execution in a documented manner characteristic of t
by userbinator 5y ago
Indeed, the standard even says one of the possible effects of UB is "behaving during translation or program execution in a documented manner characteristic of the environment" and I feel that was really the original intent.
- josephcsible 5y agoThat's the intent for a tiny handful of things that are UB, e.g., "#define _GNU_SOURCE". But for most things, e.g., out-of-bounds array access or use-after-free, it's definitely not.
- userbinator 5y agoThat sounds like revisionism. Look up "spirit of C"... or see what Kernighan and Ritchie said.