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: 5 Jan 93 22:00:07 GMT From: gvls1!oak!schrey@louie.udel.edu (Timothy M. Schreyer) Subject: Re: Enum's start at 0? Message-ID: <1993Jan5.220007.26218@gvl.unisys.com> List-Id: In article <1992Dec30.033842.10112@seas.gwu.edu>, mfeldman@seas.gwu.edu (Michae l Feldman) writes: |> In article <238@trident.datasys.swri.edu> tim@trident.datasys.swri.edu (Timo thy 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. |> All right... then why do string indices start at 1? :-) Tim -- Timothy M. Schreyer schrey@vfl.paramax.com Software Technology R&D (215) 648-2475 Paramax Systems Corporation FAX: (215) 648-2288 PO Box 517, Paoli, PA 19301