Re:Tell HN: C Experts Panel – Ask us anything about C
by Someone on Tuesday April 14, 2020 @10:53AM
(#22866737)
int i;
[…]
i += 1;
potentially is undefined behavior; i could overflow.
Compilers nowadays are fairly good at warning about definite undefined behavior.
I don’t think anybody would be happy with a compiler that aborted on all potential undefined behavior. That would (almost) be equivalent to banning the use of all signed ints.
Compilers nowadays are fairly good at warning about definite undefined behavior.
I don’t think anybody would be happy with a compiler that aborted on all potential undefined behavior. That would (almost) be equivalent to banning the use of all signed ints.