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,4692663255b51613 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 88.191.131.2 Path: g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nntpfeed.proxad.net!news.dougwise.org!gegeweb.org!feeder.news.orange.fr!not-for-mail Message-ID: <4D8FA5E7.9090008@obry.net> Date: Sun, 27 Mar 2011 23:02:31 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada To: nma@12000.org Subject: Re: on using array index, vectorized operation References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 27 Mar 2011 23:02:32 CEST NNTP-Posting-Host: 86.205.111.16 X-Trace: 1301259752 reader.news.orange.fr 5386 86.205.111.16:13544 X-Complaints-To: abuse@orange.fr Xref: g2news1.google.com comp.lang.ada:18512 Date: 2011-03-27T23:02:32+02:00 List-Id: Le 27/03/2011 22:44, Nasser M. Abbasi a �crit : > Is there a way to make > > A'First .. A'Last This is A'Range, > into one variable, say 'i', so I can just write i+1 or i-1 etc..? But there is no generic way of storing a range into a variable, so the above is not possible. One can do: subtype My_Range is Natural range I + 2 .. I + 9; A (My_Range) := ... Does that solves your problem? Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B