From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_40,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b007c42c7898f4ef,start X-Google-Attributes: gid103376,public From: David Starner Subject: First attribute on Enumerated types Date: 1999/02/23 Message-ID: <36D34E02.BED0BFC0@aasaa.ofe.org>#1/1 X-Deja-AN: 447705177 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: SLUG Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-02-23T00:00:00+00:00 List-Id: I'm trying to compile a program that refers to Color'First, and GNAT gives an error that tree.ads:12:91: prefix for "First" attribute must be array According to the Ada book at hand, First is a valid attribute for enumerated types. What am I doing wrong? How do I get the first item in an enumerated list? -- The irony is, there ARE drugs that ENHANCE it. This says something profound about either science or medicine or people or muppets or all four. - S. John Ross