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 02:27:24 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!howland.erols.net!cyclone2.usenetserver.com!news-out.usenetserver.com!telocity-west!TELOCITY!newsrump.sjc.telocity.net!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada References: <3a95c52f@post.usenet.com> <3A95E095.75B2A248@worldnet.att.net> <3a9621eb$1@pull.gecm.com> Subject: Re: Ada 0x: Re: Representation clause MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: X-Trace: MjMgTm9BdXRoVXNlciBURUxPQ0lUWS1SRUFERVJTIDIxNi4yMjcuNDcuNDkgIEZyaSwgMjMgRmVi!IDIwMDEgMDI6MjI6NDIgUFNU X-Abuse-Info: Please forward ALL headers when reporting abuse. X-Complaints-To: abuse@telocity.net NNTP-Posting-Date: Fri, 23 Feb 2001 02:22:42 PST Date: Fri, 23 Feb 2001 04:22:40 -0600 Xref: supernews.google.com comp.lang.ada:5467 Date: 2001-02-23T04:22:40-06:00 List-Id: To me this is no more "syntactic sugar" than, say, some of the features of Ada.Strings.Fixed, or of Ada.Interfaces.C. I would suggest the attribute name 'Rep. Its inverse should be provided as well -- perhaps by overloading the 'Value attribute. "Lutz Donnerhacke" wrote in message news:slrn99c9ij.ju.lutz@taranis.iks-jena.de... > * Martin Dowie wrote: > >James Rogers quote the RM: > >> 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. > > >Do I spot a possible language extension here? > >How about a 'Underlying_Value attribute? > > That would only syntactic shugar, why burden this into the language?