comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Rep Clause Vaues??
Date: 1997/01/25
Date: 1997-01-25T00:00:00+00:00	[thread overview]
Message-ID: <dewar.854213652@merv> (raw)
In-Reply-To: 5c3oh5$7oh@uuneo.neosoft.com


Bob Love asks

"What method can I use to get back the bit pattern or integer
value represented by the enumerated type?  All my attempts at
type conversion and pos/val attributes have failed."


1) use unchecked conversion
2) if you are using GNAT, check out the 'Enum_Rep attribute, which does
	exactly what you want.





  parent reply	other threads:[~1997-01-25  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-22  0:00 Rep Clause Vaues?? Robert B. Love 
1997-01-22  0:00 ` David C. Hoos, Sr.
1997-01-24  0:00   ` Robert A Duff
1997-01-22  0:00 ` Samuel Tardieu
1997-01-25  0:00 ` Robert Dewar [this message]
1997-01-26  0:00   ` Matthew Heaney
1997-01-26  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