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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.85.104 with SMTP id g8mr14572783paz.33.1474274472934; Mon, 19 Sep 2016 01:41:12 -0700 (PDT) X-Received: by 10.157.8.10 with SMTP id 10mr1549251oty.16.1474274472890; Mon, 19 Sep 2016 01:41:12 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!x192no2001618itb.0!news-out.google.com!w143ni5736itb.0!nntp.google.com!u18no1869979ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 19 Sep 2016 01:41:12 -0700 (PDT) In-Reply-To: <068b9a59-45a1-4dfc-a120-3a3fc59af456@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.167.239.219; posting-account=bPTmZAoAAAC_6HP9XLKB9aAAxBa6BuOR NNTP-Posting-Host: 85.167.239.219 References: <23ee42b9-8145-4d15-a745-a264505be8ff@googlegroups.com> <5113a69b-9b18-4a2f-999d-d32db69e3681@googlegroups.com> <068b9a59-45a1-4dfc-a120-3a3fc59af456@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: "for E of Vector1 loop" equivalent to "for n in Vector1.First_Index .. Vector1.Last_Index loop ? From: reinkor Injection-Date: Mon, 19 Sep 2016 08:41:12 +0000 Content-Type: text/plain; charset=UTF-8 Xref: news.eternal-september.org comp.lang.ada:31821 Date: 2016-09-19T01:41:12-07:00 List-Id: On Monday, September 19, 2016 at 10:02:33 AM UTC+2, Egil H H wrote: > On Monday, September 19, 2016 at 9:50:27 AM UTC+2, reinkor wrote: > > I like the construct > > > > for E of Vector1 loop > > .. > > end loop; > > > > but is there a possibility somehow to keep this style > > and execute opposite direction > > sure, just add the "reverse" keyword, just as for other for loops: > > for E of reverse Vector1 loop > .. > end loop; > > -- > ~egilhh Obs, should have found it myself :-)