Hacker News new | past | comments | ask | show | jobs | submit login

The difference here is that the behavior would need to be documented.

That's why I didn't bother with "the behavior of the program is unspecifed", because that really is just undefined behavior.

But yeah, actually listing allowed behaviors and stating that the actual behavior out of them is unspecified/implementation-defined is more practical.

One example is conversion to signed integer in C17:

> ...either the result is implementation-defined or an implementation-defined signal is raised.

https://cigix.me/c17#6.3.1.3.p3




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

Search: