comp.lang.ada
 help / color / mirror / Atom feed
From: rracine@AJPO.SEI.CMU.EDU
Subject: re: enumeration literal/internal codes query
Date: 13 Jan 89 21:29:35 GMT	[thread overview]
Message-ID: <8901132129.AA12186@ajpo.sei.cmu.edu> (raw)

Arny Engelson asks:
>After specifying internal codes for the literals of an enumeration type
>using an enumeration representation clause, how do you (later in the 
>code) find out what internal codes were specified?

The only way is by using UNCHECKED_CONVERSION.  

I have never heard an explanation as to why the POS attribute returns the
value as if the type had no representation clause.  There is no explanation
in the Rationale.

Roger Racine
C. S. Draper Laboratory, Inc.
rjr1287@draper.com

             reply	other threads:[~1989-01-13 21:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-01-13 21:29 rracine [this message]
  -- strict thread matches above, loose matches on Subject: below --
1989-01-09 15:25 enumeration literal/internal codes query Arny B. Engelson
1989-01-10 23:15 ` Arny B. Engelson
1989-01-13 17:03   ` Scott Moody
1989-01-16 18:03     ` Badger BA 64810
1989-01-19 19:44       ` Scott Moody
1989-01-31 18:05         ` Arny B. Engelson
1989-01-15  4:42   ` John Goodenough
1989-01-12  0:31 ` Michael Murphy
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox