Re:Proposal for a Friendly Dialect of C
by JoeAltmaier on Wednesday August 27, 2014 @02:54PM
(#8234029)
Most responses are hyperbole. Undefined behavior likely doesn't include making up new code; its not certain where you will end up, but someplace in existing code is a certainty.
[ Parent
| on HN ]
Even excluding obvious fantasy like nasal demons, and real but unusual cases like starting nethack, there are completely mundane things that are reasonably common in real compilers but that don't go "someplace in existing code", like aborting on integer overflow, or crashing when you access a bad pointer.
Re:Proposal for a Friendly Dialect of C
by JoeAltmaier on Wednesday August 27, 2014 @03:47PM
(#8234345)
Agreed; or like doing nothing, or choosing whatever value the CPU produces when overflowing.