From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.ada Subject: Re: What is the history behind Natural'First = 0 ? Date: Sun, 03 May 2020 20:02:22 -0700 Organization: None to speak of Message-ID: <87ftcg2yip.fsf@nosuchdomain.example.com> References: <9f0215ca-2760-47cf-a7cb-50184892e1d0@googlegroups.com> <874ksz4gwd.fsf@nosuchdomain.example.com> <87o8r43hoa.fsf@nosuchdomain.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="ac87433f224059937bac86fbf6de78bb"; logging-data="15058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Lqo8wsrt+JhtgO2yXeeiU" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:mWFvexMeJ1/JHMsDuu0arkqp2g8= sha1:tlC74EKDitEtGYmnDfAXCMlV3Ng= Xref: reader01.eternal-september.org comp.lang.ada:58573 Date: 2020-05-03T20:02:22-07:00 List-Id: Keith Thompson writes: > Robert A Duff writes: >> Keith Thompson writes: >>> Wikipedia says that some definitions have "natural numbers" starting >>> with 0, and others have them starting with 1 -- and the term "whole >>> numbers" is sometimes used to refer to the set of all integers. >> >> "The nice thing about standards is that there are so many to choose from." >> >> I seem to recall an early version of Ada (or Green) that said >> "subtype Natural is Integer range 1..Integer'Last;". I could >> be misremembering that, and (if true) I don't remember what the >> 0..Integer'Last one was called. > > Yes, I remember that. I found a copy of the 1979 Preliminary Ada > Reference Manual from SIGPLAN Notices, June 1979 at > > https://dl.acm.org/doi/pdf/10.1145/956650.956651 > > The section covering package STANDARD says: > > subtype NATURAL is INTEGER range 1 .. INTEGER'LAST; > type STRING is array (NATURAL) of CHARACTER; > > There was no predefined subtype starting at 0. I don't know just when > NATURAL was changed to start at 1 and POSITIVE was introduced. > > (And I'm glad they decided to stop using ALL_CAPS for identifiers). The 1980 edition had the same thing. I know there was another preliminary version in 1982 (before the first official standard in 1983), but I don't know what it said. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips Healthcare void Void(void) { Void(); } /* The recursive call of the void */