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 00:49:59 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <3a95c52f@post.usenet.com> <3A95E095.75B2A248@worldnet.att.net> Subject: Ada 0x: Re: Representation clause Date: Fri, 23 Feb 2001 08:46:57 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: superted.dsge.edinbr.gmav.gecm.com Message-ID: <3a9621eb$1@pull.gecm.com> X-Trace: 23 Feb 2001 08:40:11 GMT, superted.dsge.edinbr.gmav.gecm.com Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!btnet-peer1!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!superted.dsge.edinbr.gmav.gecm.com Xref: supernews.google.com comp.lang.ada:5461 Date: 2001-02-23T08:46:57+00:00 List-Id: Do I spot a possible language extension here? How about a 'Underlying_Value attribute? James Rogers wrote in message news:3A95E095.75B2A248@worldnet.att.net... > NOTES > Unchecked_Conversion may be used to query the internal codes > used for an enumeration type. The attributes of the type, such as Succ, > Pred, and Pos, are unaffected by the enumeration_representation_clause. > For example, Pos always returns the position number, not the internal > integer code that might have been specified in a > enumeration_representation_clause. > > Jim Rogers > Colorado Springs, Colorado USA > Anatoly Chernyshev wrote: > > 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?