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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4f1451304206fe77,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsfeed01.tsnz.net!ken-transit.news.telstra.net!ken-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: Dale Stanbrough Newsgroups: comp.lang.ada Subject: Accessing the underlying rep for enumerated types? User-Agent: MT-NewsWatcher/3.4 (PPC Mac OS X) Message-ID: Date: Tue, 12 Oct 2004 22:32:02 GMT NNTP-Posting-Host: 138.217.18.112 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1097620322 138.217.18.112 (Wed, 13 Oct 2004 08:32:02 EST) NNTP-Posting-Date: Wed, 13 Oct 2004 08:32:02 EST Organization: BigPond Internet Services Xref: g2news1.google.com comp.lang.ada:5111 Date: 2004-10-12T22:32:02+00:00 List-Id: An enumeration type can have a representation clause applied to it allowing you to specify a underlying integer representation for each value. 'Pos tells you the position within the enumeration, not it's underlying value. Is there any way to get access to this value other than using Unchecked_Conversion? Dale -- dstanbro@spam.o.matic.bigpond.net.au