Talk:Ada Programming/Types/Enumeration

On this page it is mentioned that `since Ada is case-insensitive`.

However, this constraint is not explicitly mentioned for enumerations: You can't define `type Red_Enum is (red, Red, RED);`. Such case sensitive definitions are allowed in some other languages.

Should the remark `Ada is case-insensitive` and the limitation for enumerations be added earlier? E.g. immediately after the definition of the enumeration?


 * Maybe that could be stated earlier in this page, but take into account that case-insensitiveness goes beyond the definition of enumerations; it affects to any identifier defined in the same scope as another. It is first introduced here: Ada_Programming/Lexical_elements. Note, however, that the following is possible, since each enumeration defines its own namespace:

type Traffic_Light is (Red, Yellow, Green); type RGB is (RED, GREEN, BLUE); -- Or Red, Green, Blue, for that matter.
 * --ManuelGR (discuss • contribs) 19:32, 12 February 2020 (UTC)