From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 30 Dec 92 03:38:42 GMT From: seas.gwu.edu!mfeldman@uunet.uu.net (Michael Feldman) Subject: Re: Enum's start at 0? Message-ID: <1992Dec30.033842.10112@seas.gwu.edu> List-Id: 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." ------------------------------------------------------------------------