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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e511f3ccb3da24af X-Google-Attributes: gid103376,public From: "G. de Montmollin" Subject: Re: How to make like Fortran "do i = 1,20,2" Date: 2000/07/27 Message-ID: <398056EE.F9266F35@maths.unine.ch>#1/1 X-Deja-AN: 651444200 Content-Transfer-Encoding: 7bit References: <8lpcbe$40n$1@news.uit.no> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 27 Jul 2000 17:36:14 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-07-27T00:00:00+00:00 List-Id: Reinert Korsnes: > Yes, I can use: > I := A'first; > while I <= A'Last loop; > something.. > I := I + 2; > end loop; > But this does not look so elegant.... More elegant but also efficient and readable (without "/", "*" or "MOD" tricks): I fear there isn't. Maybe a reason why "they" didn't add a "step N" is that A'Last is not necessarily reached - I guess, a security issue... ______________________________________________________ Gautier -- http://members.xoom.com/gdemont/gsoft.htm