comp.lang.ada
 help / color / mirror / Atom feed
From: "Beard, Frank Randolph CIV" <frank.beard@navy.mil>
To: <comp.lang.ada@ada-france.org>
Subject: RE: Need Value of enum type not position.
Date: Mon, 10 Nov 2003 13:25:09 -0500
Date: 2003-11-10T13:25:09-05:00	[thread overview]
Message-ID: <mailman.320.1068488752.25614.comp.lang.ada@ada-france.org> (raw)

I like that one even better, because it's even shorter
and clearer.  Define the range of the numbers you want,
let the compiler figure out what it thinks is the best
number of bits to use, and then make the enumerated
type match it.

Frank

-----Original Message-----
From: Marius Amado Alves [mailto:amado.alves@netcabo.pt]

For what it's worth, this exact problem was discussed and solved in the
thread "accesing internal codes used for an enumeration" by myself on 7
May 2001.

http://groups.google.pt/groups?hl=pt-PT&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=d1367eec61426d33&seekm=mailman.989261706.30667.comp.lang.ada%40ada.eu.org#link7




             reply	other threads:[~2003-11-10 18:25 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-10 18:25 Beard, Frank Randolph CIV [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-10 17:30 Need Value of enum type not position Beard, Frank Randolph CIV
2003-11-18 21:07 ` Randy Brukardt
2003-11-07 18:27 Daniel Allex
2003-11-07 19:26 ` Robert I. Eachus
2003-11-08  0:16   ` Nick Roberts
2003-11-10 13:48 ` Mark Doherty
2003-11-10 18:04 ` Marius Amado Alves
replies disabled

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