From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Ada 0x: Re: Representation clause
Date: Fri, 23 Feb 2001 04:22:40 -0600
Date: 2001-02-23T04:22:40-06:00 [thread overview]
Message-ID: <SRql6.124915$Ch.23157308@newsrump.sjc.telocity.net> (raw)
In-Reply-To: slrn99c9ij.ju.lutz@taranis.iks-jena.de
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" <lutz@iks-jena.de> wrote in message
news:slrn99c9ij.ju.lutz@taranis.iks-jena.de...
> * Martin Dowie wrote:
> >James Rogers <jimmaureenrogers@worldnet.att.net> 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?
next prev parent reply other threads:[~2001-02-23 10:22 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-23 2:39 Representation clause Anatoly Chernyshev
2001-02-23 3:59 ` James Rogers
2001-02-23 8:46 ` Ada 0x: " Martin Dowie
2001-02-23 9:01 ` Lutz Donnerhacke
2001-02-23 10:22 ` David C. Hoos, Sr. [this message]
2001-02-23 13:56 ` Florian Weimer
2001-02-23 14:57 ` David C. Hoos, Sr.
2001-02-23 21:38 ` Florian Weimer
2001-02-23 21:12 ` Randy Brukardt
2001-02-24 5:44 ` James Rogers
2001-02-24 10:43 ` Florian Weimer
2001-02-24 17:47 ` James Rogers
2001-02-26 19:51 ` Randy Brukardt
2001-02-26 20:20 ` James Rogers
[not found] ` <WURm6.3437$7e6.1392211@homer.alpha.net>
2001-02-28 2:32 ` James Rogers
2001-02-23 13:25 ` Marc A. Criley
2001-02-23 14:08 ` Des Walker
2001-02-24 13:26 ` David C. Hoos, Sr.
2001-02-24 14:45 ` Ken Garlington
2001-02-25 20:22 ` David C. Hoos, Sr.
2001-02-26 0:53 ` Ken Garlington
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox