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=2.0 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, REPLYTO_WITHOUT_TO_CC 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.190.104 with SMTP id gp8mr17196759pbc.4.1340728104639; Tue, 26 Jun 2012 09:28:24 -0700 (PDT) Path: l9ni22558pbj.0!nntp.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Nasser M. Abbasi" Newsgroups: comp.lang.ada Subject: Re: how to print an array range? Date: Tue, 26 Jun 2012 11:28:21 -0500 Organization: Aioe.org NNTP Server Message-ID: References: <4fe9bf33$0$6566$9b4e6d93@newsspool4.arcor-online.net> <4fe9daf1$0$6556$9b4e6d93@newsspool4.arcor-online.net> Reply-To: nma@12000.org NNTP-Posting-Host: KdJUrTuvv3Zv/s8pPxNluw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 X-Notice: Filtered by postfilter v. 0.8.2 X-Received-Bytes: 1818 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-06-26T11:28:21-05:00 List-Id: On 6/26/2012 10:53 AM, Georg Bauhaus wrote: > On 26.06.12 16:24, Nasser M. Abbasi wrote: >> But I wanted to see the range of >> the first dimension of the Matrix A below. (1..3, 1..3) > > Specify the ranges you want, for example, > > A : constant Real_Matrix (1 .. 3, 1 .. 3) := > (( 1.0, 2.0, 3.0), > ( 4.0, 5.0, 6.0), > ( 7.0, 8.0, 9.0)); > I think I am not explaining myself well. I simply wanted to print the range itself, after I define a variable. using PUT(). i.e. in the above, what would one write to print "1..3" for A'range(1) and "1..3" for A'range(2)? I am not asking how to specify the range, I know that. but to print it, for debugging purposes. I can't just type write put(A'range(1)). And when I write put(A'first(1)) it prints -2147483648. Any way, no big deal, will figure it out. regards, --Nasser