From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: How to make like Fortran "do i = 1,20,2"
Date: 2000/07/27
Date: 2000-07-27T00:00:00+00:00 [thread overview]
Message-ID: <slrn8o0e1e.oi.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 8lpcbe$40n$1@news.uit.no
* Reinert Korsnes wrote:
>How can one in Ada elegantly make a loop through each 2 element of an
>array ? I am looking for something like: "do i = 1,20,2" in Fortran,
-- Not tested
for J in 0 .. A'Length/2 loop
declare
I : constant Integer = 2*J + A'First;
begin
something...
end;
end loop;
prev parent reply other threads:[~2000-07-27 0:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-07-27 0:00 How to make like Fortran "do i = 1,20,2" Reinert Korsnes
2000-07-27 0:00 ` Ken Garlington
2000-07-27 0:00 ` des walker
2000-07-27 0:00 ` Gary Scott
2000-07-27 0:00 ` tmoran
2000-07-28 0:00 ` Reinert Korsnes
2000-07-28 0:00 ` Gautier
2000-07-29 0:00 ` tmoran
2000-07-27 0:00 ` Larry Kilgallen
2000-07-27 0:00 ` Gary Scott
2000-07-27 0:00 ` Larry Kilgallen
2000-07-27 0:00 ` Pat Rogers
2000-07-27 0:00 ` Matthew J Heaney
2000-07-28 0:00 ` Gary Scott
2000-07-28 0:00 ` mjsilva
2000-07-29 0:00 ` Ehud Lamm
2000-07-28 0:00 ` Richard Riehle
[not found] ` <39833637.3B83BFAC@lmtas.lmco.com>
2000-07-29 0:00 ` Gary Scott
2000-07-29 0:00 ` Robert I. Eachus
2000-07-27 0:00 ` mjsilva
2000-07-27 0:00 ` G. de Montmollin
2000-07-27 0:00 ` Lutz Donnerhacke [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox