From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Using the GNAT defined attribute: 'Enum_Rep
Date: 1997/09/08
Date: 1997-09-08T00:00:00+00:00 [thread overview]
Message-ID: <EG7EF0.2B@world.std.com> (raw)
In-Reply-To: 97082719523509@psavax.pwfl.com
In article <97082719523509@psavax.pwfl.com>,
Marin David Condic, 561.796.8997, M/S 731-96 <condicma@PWFL.COM> wrote:
> The ARM suggests using Unchecked_Conversion to get from here to
> there, but now you've got to create an integer type that is the
> same size as the enumerated type. Here's a code fragment:
How about:
type Temp_Integer is range 0..2**User_Types.CL_Evt_Status'Size;
and use Temp_Integer'Base? Or:
type Temp_Integer is mod User_Types.CL_Evt_Status'Size;
?
- Bob
next prev parent reply other threads:[~1997-09-08 0:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-27 0:00 Using the GNAT defined attribute: 'Enum_Rep Marin David Condic, 561.796.8997, M/S 731-96
1997-09-03 0:00 ` W. Wesley Groleau x4923
1997-09-06 0:00 ` Robert Dewar
1997-09-08 0:00 ` Robert A Duff
1997-09-08 0:00 ` W. Wesley Groleau x4923
1997-09-08 0:00 ` Matthew Heaney
1997-09-08 0:00 ` Robert A Duff
1997-09-08 0:00 ` W. Wesley Groleau x4923
1997-09-08 0:00 ` Matthew Heaney
1997-09-09 0:00 ` Robert A Duff
1997-09-11 0:00 ` Robert Dewar
1997-09-08 0:00 ` Robert A Duff [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-09-09 0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-09-09 0:00 ` Robert A Duff
1997-09-09 0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-09-09 0:00 ` W. Wesley Groleau x4923
1997-09-11 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox