comp.lang.ada
 help / color / mirror / Atom feed
From: seas.gwu.edu!mfeldman@uunet.uu.net  (Michael Feldman)
Subject: Re: Enum's start at 0?
Date: 30 Dec 92 03:38:42 GMT	[thread overview]
Message-ID: <1992Dec30.033842.10112@seas.gwu.edu> (raw)

In article <238@trident.datasys.swri.edu> tim@trident.datasys.swri.edu (Timothy
 J. Barton) writes:
>Just curious, but is there a reason enumerated type's POS values
>start at 0 instead of 1?
>
Just like everything else in computing. ASCII characters, for example,
run from 0 to 127, not 128. You can represent 0..127 using one less bit than
1..128.

Mike Feldman
------------------------------------------------------------------------
Michael B. Feldman
co-chair, SIGAda Education Committee

Professor, Dept. of Electrical Engineering and Computer Science
School of Engineering and Applied Science
The George Washington University
Washington, DC 20052 USA
(202) 994-5253 (voice)
(202) 994-5296 (fax)
mfeldman@seas.gwu.edu (Internet)

"Americans want the fruits of patience -- and they want them now."
------------------------------------------------------------------------

             reply	other threads:[~1992-12-30  3:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-12-30  3:38 Michael Feldman [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-01-07 15:25 Enum's start at 0? enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!news.belwue.de!news.uni-st
1993-01-07 14:06 Peter Hermann
1993-01-07 13:25 usc!wupost!darwin.sura.net!Sirius.dfn.de!news.belwue.de!news.uni-stuttgar
1993-01-07  8:09 Magn us Kempe
1993-01-06 19:40 Robert I. Eachus
1993-01-06  2:59 Michael Feldman
1993-01-05 22:00 Timothy M. Schreyer
1992-12-29 14:36 Timothy J. Barton
replies disabled

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