5 ms·
> C compiler is one of the most rigorously specified pieces of software out there /me Laughs in "unspecified behavior."
by ndesaulniers 9mo ago
> C compiler is one of the most rigorously specified pieces of software out there
/me Laughs in "unspecified behavior."
- ori_b 9mo agoThere's undefined behavior, which is quite well specified. What do you mean by unspecified behavior? Do you have an example?
- ndesaulniers 9mo agohttps://www.open-std.org/jtc1/sc22/wg14/www/docs/n3685.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3685.pdf Read section J.1.
- irishcoffee 9mo agoUndefined is absolutely clear in the spec. Unspecified is whatever you want it to mean. I am also laughing, having never heard "unspecified" before.
- LiamPowell 9mo agoUnspecified behaviour is defined in the glossary at the start of the spec and the term "unspecified" appears over a hundred times...