5 ms·
Why would he need to? Just know what is definitely defined and stick with that
by mburee 5y ago
Why would he need to? Just know what is definitely defined and stick with that
- Certhas 5y agoBecause he claimed to keep the entire language in his head, not just a sane subset. You can also keep a sane subset of C++ in your head.
- jb1991 5y agoUndefined behavior means that which is not defined in the standard. The C standard is quite small, and it is very easy to keep all that in your head. There’s no need to have any subset of the language in memory, this is the whole standard.
- adwn 5y ago> Undefined behavior means that which is not defined in the standard. No, you're wrong. "Undefined Behavior" (UB) in the context of C has a very different meaning from the colloquial meaning "not specified". The meaning of UB is explicitly defined in the C standard, and the C standard explicitly lists certain program execution patterns as UB.
- gpderetta 5y agoFrom the sacred texts (emphasis mine): > If a ‘‘shall’’ or ‘‘shall not’’ requirement that appears outside of a constraint is violated, the behavior is undefined. Undefined behavior is otherwise indicated in this International Standard by the words ‘‘undefined behavior’’ or by the omission of any explicit definition of behavior. There is no difference in emphasis among these three; they all describe ‘‘behavior that is undefined’’
- jb1991 5y agoBut do you consider that a "subset" of the language, as parent says?
- deleted 5y ago[deleted]
- pjc50 5y agoThen you can't do arithmetic.