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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no 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.196.232 with SMTP id ip8mr17262956pbc.6.1340729889951; Tue, 26 Jun 2012 09:58:09 -0700 (PDT) Path: l9ni22643pbj.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 26 Jun 2012 18:58:08 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: how to print an array range? References: <4fe9bf33$0$6566$9b4e6d93@newsspool4.arcor-online.net> <4fe9daf1$0$6556$9b4e6d93@newsspool4.arcor-online.net> In-Reply-To: Message-ID: <4fe9ea21$0$6555$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 26 Jun 2012 18:58:09 CEST NNTP-Posting-Host: 4be7f59d.newsspool4.arcor-online.net X-Trace: DXC=F5_KnY`2KCO6PJ?[X6JIXE4IUKJLh>_cHTX3jMCOY3SkWG[1@ X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-06-26T18:58:09+02:00 List-Id: On 26.06.12 18:28, Nasser M. Abbasi wrote: > I can't just type write put(A'range(1)). And when I write > put(A'first(1)) it prints -2147483648. You had got it already, I think. Here is LRM 3.6.2: 7 A'Range A'Range is equivalent to the range A'First .. A'Last, except that the prefix A is only evaluated once. Equivalent also means that you can write, in source, A'Range(n) wherever you could equivalently write A'First(n) .. A'Last(n). Consider writing Put (A'First(1) .. A'Last(1)); in source. But this has no meaning as a parameter to Put. One way is to Put("..") between Put(A'First(1)) and Put(A'Last(1));