home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.ada
- Path: sparky!uunet!gatech!udel!gvls1!oak!schrey
- From: schrey@oak.NoSubdomain.NoDomain (Timothy M. Schreyer)
- Subject: Re: Enum's start at 0?
- Message-ID: <1993Jan5.220007.26218@gvl.unisys.com>
- Sender: schrey@oak (Timothy M. Schreyer)
- Nntp-Posting-Host: oak
- Reply-To: schrey@prc.unisys.com
- Organization: Paramax Systems
- References: <238@trident.datasys.swri.edu> <1992Dec30.033842.10112@seas.gwu.edu>
- Date: Tue, 5 Jan 1993 22:00:07 GMT
- Lines: 17
-
- In article <1992Dec30.033842.10112@seas.gwu.edu>, mfeldman@seas.gwu.edu (Michael Feldman) writes:
- |> 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.
- |>
- 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
-