4 ms·
The C11 standard is 701 pages. The "Language" section (ignoring the Environmet, definitions of terms, standard library, and appendices) is 145 pages. And it's h
by SAI_Peregrinus 5y ago
The C11 standard is 701 pages. The "Language" section (ignoring the Environmet, definitions of terms, standard library, and appendices) is 145 pages. And it's hillariously underspecified even without ignoring all that; there's tons of implementation-defined (documented independently by each compiler), unspecified (compilers must pick a behavior from a list and document which choice they made), and undefined (not required to be documented by any compiler) behavior.
- phendrenad2 5y agoBefore anyone takes this post at it's word, I encourage you to go look at the C11 standard. It's called "ISO/IEC 9899:201x" and those of you who have seen an ISO standard before will already know where I'm going with this! > 145 pages Yes, and (within that 145) they take a whole page to define the word "scope". Not even in the context of C!! Just the general language-agnostic term "Scope". That's hardly meaningful...
- SAI_Peregrinus 5y agoWhich page within the 145 (chapter 6)? The section on scopes of identifiers (6.2.1, pgs 35-36) is entirely in the context of the C language.
- phendrenad2 5y agoExactly that one. I'll let people read it to come to their own determination as to how "entirely in the context of the C language" it is.