comp.lang.ada
 help / color / mirror / Atom feed
* Accessing the underlying rep for enumerated types?
@ 2004-10-12 22:32 Dale Stanbrough
  2004-10-13  0:20 ` Stephen Leake
  2004-10-13  1:26 ` Jeffrey Carter
  0 siblings, 2 replies; 8+ messages in thread
From: Dale Stanbrough @ 2004-10-12 22:32 UTC (permalink / raw)


An enumeration type can have a representation clause applied to it
allowing you to specify a underlying integer representation for
each value.

'Pos tells you the position within the enumeration, not it's
underlying value. Is there any way to get access to this value
other than using Unchecked_Conversion?

Dale

-- 
dstanbro@spam.o.matic.bigpond.net.au



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-10-14  1:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox