comp.lang.ada
 help / color / mirror / Atom feed
From: ryer@inmet.UUCP
Subject: Re: enumeration literal/internal codes
Date: 20 Jan 89 15:04:00 GMT	[thread overview]
Message-ID: <124000032@inmet> (raw)
In-Reply-To: 1494@wayback.UUCP


When you put a rep spec on an enumerated type, the type is more like a
bit string or packed integer than just a "pure" enumeration.  When you
start accessing the internal value with explicit code, the type begins
to look quite unlike an enumerated type.  Perhaps the application that
wants to use these types would be happier with _named constants_ of a type
that is a packed array of booleans or an integer with a restricted
range.  I'm sure that someone will be proposing access to the internals
of an enumerated type for Ada 9X, so it may be important to know whether
the particular application really wants to be coded that way.

Mike Ryer
Intermetrics

      parent reply	other threads:[~1989-01-20 15:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-01-09 15:25 enumeration literal/internal codes query Arny B. Engelson
1989-01-10 23:15 ` Arny B. Engelson
1989-01-13 17:03   ` Scott Moody
1989-01-16 18:03     ` Badger BA 64810
1989-01-19 19:44       ` Scott Moody
1989-01-31 18:05         ` Arny B. Engelson
1989-01-15  4:42   ` John Goodenough
1989-01-12  0:31 ` Michael Murphy
1989-01-12 15:51 ` enumeration literal/internal codes stt
1989-01-20 15:04 ` ryer [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