3 ms·
Yes, but erroring out on something like that is not good for other reasons. Among other things, that moves it from a local problem to a global problem. It's t
by TheLoneWolfling 12y ago
Yes, but erroring out on something like that is not good for other reasons.
Among other things, that moves it from a local problem to a global problem.
It's the same problem with undefined behavior in general. It's an example of a local problem causing global problems.
You don't want your rocket to crash just because something threw an unchecked exception.
- masklinn 12y ago> You don't want your rocket to crash just because something threw an unchecked exception. Good news: the error is a compile-time error, not a runtime error.
- TheLoneWolfling 12y agoYou hope. And then you run into something like this [1] - which has been open for >10 years, and all of a sudden you're invoking UB without realizing it. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18501