home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / ada / 3903 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.lang.ada
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!gatech!usenet.ins.cwru.edu!agate!linus!linus.mitre.org!linus!mbunix!eachus
  3. From: eachus@goldfinger.mitre.org (Robert I. Eachus)
  4. Subject: Re: Enum's start at 0?
  5. In-Reply-To: mfeldman@seas.gwu.edu's message of Wed, 6 Jan 1993 02:59:29 GMT
  6. Message-ID: <EACHUS.93Jan6144057@goldfinger.mitre.org>
  7. Sender: news@linus.mitre.org (NONUSER)
  8. Nntp-Posting-Host: goldfinger.mitre.org
  9. Organization: The Mitre Corp., Bedford, MA.
  10. References: <238@trident.datasys.swri.edu> <1992Dec30.033842.10112@seas.gwu.edu>
  11.     <1993Jan5.220007.26218@gvl.unisys.com>
  12.     <1993Jan6.025929.18871@seas.gwu.edu>
  13. Date: Wed, 6 Jan 1993 19:40:57 GMT
  14. Lines: 27
  15.  
  16. In article <1993Jan6.025929.18871@seas.gwu.edu> mfeldman@seas.gwu.edu (Michael Feldman) writes:
  17.  
  18.    In article <1993Jan5.220007.26218@gvl.unisys.com> schrey@prc.unisys.com writes:
  19.    > >   All right... then why do string indices start at 1? :-)
  20.  
  21.    > Beats me. Anyone out there have an authoritative answer?
  22.  
  23.    Is there such a thing?  (I assume you don't want me to point to
  24. Appendix C(17) and say because...)  There was a lot of debate on this
  25. in 1981-1982, but as I remember it, it was more concerned with
  26. replacing the subtypes NONNEGATIVE and NATURAL with the more standard
  27. NATURAL and POSITIVE.  Once these were changed STRING changed to
  28. match.
  29.  
  30.     I guess the real answer is that there was always an expectation
  31. that for "normal" strings 'LENGTH = 'LAST and this requires that
  32. STRINGs be based at one.
  33.  
  34.  
  35.  
  36. --
  37.  
  38.                     Robert I. Eachus
  39.  
  40. with Standard_Disclaimer;
  41. use  Standard_Disclaimer;
  42. function Message (Text: in Clever_Ideas) return Better_Ideas is...
  43.