comp.lang.ada
 help / color / mirror / Atom feed
From: gvls1!oak!schrey@louie.udel.edu  (Timothy M. Schreyer)
Subject: Re: Enum's start at 0?
Date: 5 Jan 93 22:00:07 GMT	[thread overview]
Message-ID: <1993Jan5.220007.26218@gvl.unisys.com> (raw)

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

             reply	other threads:[~1993-01-05 22:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-01-05 22:00 Timothy M. Schreyer [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
1992-12-30  3:38 Michael Feldman
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