comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <MrNoSpam@bigpoop.net.au>
Subject: Accessing the underlying rep for enumerated types?
Date: Tue, 12 Oct 2004 22:32:02 GMT
Date: 2004-10-12T22:32:02+00:00	[thread overview]
Message-ID: <MrNoSpam-EC7BEF.08320213102004@news-server.bigpond.net.au> (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



             reply	other threads:[~2004-10-12 22:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12 22:32 Dale Stanbrough [this message]
2004-10-13  0:20 ` Accessing the underlying rep for enumerated types? 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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox