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.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!AJPO.SEI.CMU.EDU!rracine From: rracine@AJPO.SEI.CMU.EDU Newsgroups: comp.lang.ada Subject: re: enumeration literal/internal codes query Message-ID: <8901132129.AA12186@ajpo.sei.cmu.edu> Date: 13 Jan 89 21:29:35 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet List-Id: 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