home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!seas.gwu.edu!mfeldman
- From: mfeldman@seas.gwu.edu (Michael Feldman)
- Subject: Re: Enum's start at 0?
- Message-ID: <1992Dec30.033842.10112@seas.gwu.edu>
- Sender: news@seas.gwu.edu
- Organization: George Washington University
- References: <238@trident.datasys.swri.edu>
- Date: Wed, 30 Dec 1992 03:38:42 GMT
- Lines: 23
-
- 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."
- ------------------------------------------------------------------------
-