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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1ce0ce3b2db00698 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.40 with SMTP id qr8mr18105739pbc.0.1340750353376; Tue, 26 Jun 2012 15:39:13 -0700 (PDT) MIME-Version: 1.0 Path: l9ni23519pbj.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: how to print an array range? Date: Tue, 26 Jun 2012 17:39:08 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <4fe9bf33$0$6566$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1340750352 17655 69.95.181.76 (26 Jun 2012 22:39:12 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 26 Jun 2012 22:39:12 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Date: 2012-06-26T17:39:08-05:00 List-Id: "Robert A Duff" wrote in message news:wccvcidwyj0.fsf@shell01.TheWorld.com... > "Nasser M. Abbasi" writes: > >> I know I am doing something silly here. > > Or maybe the language designers did something silly. > Why didn't they make the index subtype Positive (or > maybe Natural) instead of Integer? Is it important > to allow negative index values? Well, it wasn't the language designers; we got those packages almost unmodified from a previous standard. And we did talk about changing Matrix to have a range of Positive, but I believe there were some examples shown of negative indexes making sense. So in the end, we didn't change something that others had designed, presumably for a reason. Randy.