Re:Falsehoods programmers believe about undefined behavior
by mnw21cam on Monday November 28, 2022 @11:03AM
(#33775271)
So the pseudocode:
is UB? That's crazy, but not actually unbelievable.
[ Parent
| on HN ]
Re:Falsehoods programmers believe about undefined behavior
by dllthomas on Monday November 28, 2022 @11:21AM
(#33775518)
I am not certain of the language lawyer side of it, but no reasonable (or even moderately unreasonable) compiler would omit that check because of the guarded behavior; way too much code would break, probably including that compiler's standard library.