From: Jeffrey Carter <spam@spam.com>
Subject: Re: Accessing the underlying rep for enumerated types?
Date: Thu, 14 Oct 2004 01:25:30 GMT
Date: 2004-10-14T01:25:30+00:00 [thread overview]
Message-ID: <eAkbd.3574$gy1.299@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <MrNoSpam-CCC41B.16510613102004@news-server.bigpond.net.au>
Dale Stanbrough wrote:
> Jeffrey Carter wrote:
>
>>If you mean a way built into the language, that's called
>>Unchecked_Conversion.
>
> Obviously I have to phrase this much more pedantically.
>
> Is there any feature in the language that allows me to get access
> to the underlying enumeration values other than using Unchecked
> Conversion?
As I pointed out, attempting to keep tongue in cheek, the only feature
in the language that provides this is Unchecked_Conversion.
I believe GNAT has a non-portable attribute to do this. Yes, 'Enum_Rep.
--
Jeff Carter
"Mr. President, we must not allow a mine-shaft gap!"
Dr. Strangelove
33
prev parent reply other threads:[~2004-10-14 1:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-12 22:32 Accessing the underlying rep for enumerated types? Dale Stanbrough
2004-10-13 0:20 ` Stephen Leake
[not found] ` <MrNoSpam-2408AC.16521913102004@news-server.bigpond.net.au>
2004-10-13 7:23 ` Marius Amado Alves
2004-10-13 12:29 ` Stephen Leake
2004-10-13 1:26 ` Jeffrey Carter
2004-10-13 6:51 ` Dale Stanbrough
2004-10-13 21:49 ` Nick Roberts
2004-10-14 1:25 ` Jeffrey Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox