comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: Enum's start at 0?
Date: 6 Jan 93 19:40:57 GMT	[thread overview]
Message-ID: <EACHUS.93Jan6144057@goldfinger.mitre.org> (raw)

In article <1993Jan6.025929.18871@seas.gwu.edu> mfeldman@seas.gwu.edu (Michael 
Feldman) writes:

   In article <1993Jan5.220007.26218@gvl.unisys.com> schrey@prc.unisys.com writ
es:
   > >   All right... then why do string indices start at 1? :-)

   > Beats me. Anyone out there have an authoritative answer?

   Is there such a thing?  (I assume you don't want me to point to
Appendix C(17) and say because...)  There was a lot of debate on this
in 1981-1982, but as I remember it, it was more concerned with
replacing the subtypes NONNEGATIVE and NATURAL with the more standard
NATURAL and POSITIVE.  Once these were changed STRING changed to
match.

    I guess the real answer is that there was always an expectation
that for "normal" strings 'LENGTH = 'LAST and this requires that
STRINGs be based at one.



--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

             reply	other threads:[~1993-01-06 19:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-01-06 19:40 Robert I. Eachus [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  2:59 Michael Feldman
1993-01-05 22:00 Timothy M. Schreyer
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