3 ms·
> 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 mean
by 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?