The use of the term "ordinal number" in this proposal and in section 23.15.2
and 23.16.2 is presumably an error. First of all, this term has not been
defined in the LRM. And second, its actual meaning is probably not what is
desired here.
What is presumably desired is the numeric value associated with the enum
value, whether assigned explicitly by the user or implicitly by the compiler.
The ordinal number would be the position of the value in the list of enum
literals. This would be the same thing if all values were assigned
implicitly by the compiler. But with user-assigned values, the assigned
value may not match the ordinal number.
Steven Sharp
sharp@cadence.com
Received on Wed Oct 27 16:40:35 2004
This archive was generated by hypermail 2.1.8 : Wed Oct 27 2004 - 16:40:37 PDT