This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error in Section 2.2
- From: Martin Sebor <msebor at gmail dot com>
- To: Dale Noble <dale dot noble at HiRelData dot com>, gcc-help at gcc dot gnu dot org
- Date: Thu, 24 Aug 2017 18:18:44 -0600
- Subject: Re: Error in Section 2.2
- Authentication-results: sourceware.org; auth=none
- References: <201708242025.v7OKPfks026575@atl4mhob02.registeredsite.com>
On 08/24/2017 02:25 PM, Dale Noble wrote:
Dear GNU
Reference https://www.gnu.org/software/gnu-c-manual/gnu-c-manual.html
Section 2.2.1 and 2.2.2 on enumerations.
I do not think that these are correct.
To define something causes storage allocation (its creation).
To declare something does not causes storage allocation (no creation).
Looks like 2.2.1 and 2.2.2 are switched.
I don't think they're switched but I do agree that the terminology
used there isn't entirely accurate.
An enumeration in the C and C++ standards means the set of named
constants defined by an enumerated type (called enumeration
constants). So the title of 2.2.1 is correct.
But the title of 2.2.2 is not really correct because the section
talks about declaring variables of enumerated types, not the types
themselves. The title would be more accurate if it were changed
to something like "Declaring Enumerated Variables."
Martin