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: mheaney@ni.net (Matthew Heaney) Subject: Re: Rep Clause Vaues?? Date: 1997/01/26 Message-ID: #1/1 X-Deja-AN: 212401016 references: <5c3oh5$7oh@uuneo.neosoft.com> content-type: text/plain; charset=ISO-8859-1 organization: Estormza Software mime-version: 1.0 newsgroups: comp.lang.ada Date: 1997-01-26T00:00:00+00:00 List-Id: In article , dewar@merv.cs.nyu.edu (Robert Dewar) wrote: >"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." > >2) if you are using GNAT, check out the 'Enum_Rep attribute, which does > exactly what you want. I'm curious, why didn't you name the attribute just 'Rep, rather than 'Enum_Rep? -------------------------------------------------------------------- Matthew Heaney Software Development Consultant (818) 985-1271