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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c204c2633e999a33 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Rep Clause Vaues?? Date: 1997/01/25 Message-ID: #1/1 X-Deja-AN: 212177223 references: <5c3oh5$7oh@uuneo.neosoft.com> organization: New York University newsgroups: comp.lang.ada Date: 1997-01-25T00:00:00+00:00 List-Id: Bob Love asks "What method can I use to get back the bit pattern or integer value represented by the enumerated type? All my attempts at type conversion and pos/val attributes have failed." 1) use unchecked conversion 2) if you are using GNAT, check out the 'Enum_Rep attribute, which does exactly what you want.