From: Pascal Obry <pascal@obry.net>
To: nma@12000.org
Subject: Re: on using array index, vectorized operation
Date: Sun, 27 Mar 2011 23:02:31 +0200
Date: 2011-03-27T23:02:32+02:00 [thread overview]
Message-ID: <4D8FA5E7.9090008@obry.net> (raw)
In-Reply-To: <imo7jn$ll4$1@speranza.aioe.org>
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
next prev parent reply other threads:[~2011-03-27 21:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-27 1:31 on using array index, vectorized operation Nasser M. Abbasi
2011-03-27 18:48 ` Nasser M. Abbasi
2011-03-27 20:01 ` Cyrille
2011-03-27 20:44 ` Nasser M. Abbasi
2011-03-27 21:02 ` Pascal Obry [this message]
2011-03-27 21:30 ` Shark8
2011-03-27 22:00 ` Nasser M. Abbasi
2011-03-27 22:37 ` Phil Clayton
2011-03-27 22:43 ` Nasser M. Abbasi
2011-03-27 22:59 ` Phil Clayton
2011-03-27 22:09 ` Phil Clayton
2011-03-27 22:12 ` Nasser M. Abbasi
2011-03-27 22:23 ` Nasser M. Abbasi
2011-03-29 2:50 ` Randy Brukardt
2011-03-29 4:55 ` Nasser M. Abbasi
2011-03-29 20:11 ` Phil Clayton
2011-03-29 21:17 ` Nasser M. Abbasi
2011-03-29 22:49 ` Phil Clayton
2011-03-29 23:47 ` Nasser M. Abbasi
2011-03-30 13:00 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox