Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


Agreed; or like doing nothing, or choosing whatever value the CPU produces when overflowing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: