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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,269df2c167555fd6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-23 06:12:09 PST Message-ID: <3A966EF0.44AA5D54@amsjv.com> Date: Fri, 23 Feb 2001 14:08:48 +0000 From: Des Walker Organization: Alenia-Marconi Systems X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Representation clause References: <3a95c52f@post.usenet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: farwkn6911.frlngtn.gecm.com X-Trace: 23 Feb 2001 14:03:01 GMT, farwkn6911.frlngtn.gecm.com Path: supernews.google.com!sn-xit-03!supernews.com!freenix!fr.clara.net!heighliner.fr.clara.net!grolier!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!farwkn6911.frlngtn.gecm.com Xref: supernews.google.com comp.lang.ada:5472 Date: 2001-02-23T14:08:48+00:00 List-Id: Anatoly Chernyshev wrote: > > **** Post for FREE via your newsreader at post.usenet.com **** > > Hello again, > > Now I wander about representation clause for enumerated types. > For example, > type ATOM is (H, C, N, O); > for ATOM use (H=>1, C=>6, N=>7, O=>8); > > How can I access these 'internal' numbers? > ATOM'POS yields 0, 1, 2, 3 respectively and I know no other relevant > attributes. > > Thanks, > Anatoly > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > *** Usenet.com - The #1 Usenet Newsgroup Service on The Planet! *** > http://www.usenet.com > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Hi GNAT provides the (non portable) 'Enum_Rep attribute. Des Walker Alenia-Marconi Systems