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.13.254.71 with SMTP id o68mr3621347ywf.135.1474269789976; Mon, 19 Sep 2016 00:23:09 -0700 (PDT) X-Received: by 10.157.51.3 with SMTP id f3mr1545772otc.4.1474269789900; Mon, 19 Sep 2016 00:23:09 -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!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!w41no1156844qtw.1!news-out.google.com!w143ni5698itb.0!nntp.google.com!u18no1852113ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 19 Sep 2016 00:23:09 -0700 (PDT) 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 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <23ee42b9-8145-4d15-a745-a264505be8ff@googlegroups.com> Subject: "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 07:23:09 +0000 Content-Type: text/plain; charset=UTF-8 X-Received-Bytes: 1589 X-Received-Body-CRC: 304276391 Xref: news.eternal-september.org comp.lang.ada:31817 Date: 2016-09-19T00:23:09-07:00 List-Id: Assume Vector1 is a vector (container) and I want to loop through it in the direction Vector1.First_Index .. Vector1.Last_Index. Is the following equivalent: for n in Vector1.First_Index .. Vector1-Last_Index loop end loop; and for E of Vector1 loop end loop; ? It is for me not directly intuitive that the latter construct process the vector elements in the same order as the former. I feel I should find the answer in the definition of Ada - but din not :-) reinert