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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fe5e779eaf4ecf02 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!56g2000hsm.googlegroups.com!not-for-mail From: Matthew Heaney Newsgroups: comp.lang.ada Subject: Re: How to loop (elegant) throug a vector ? Date: Mon, 23 Jun 2008 10:11:57 -0700 (PDT) Organization: http://groups.google.com Message-ID: <5a81b140-4f95-4e44-b670-9e75840ce9f7@56g2000hsm.googlegroups.com> References: NNTP-Posting-Host: 66.162.65.129 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1214241123 23166 127.0.0.1 (23 Jun 2008 17:12:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Jun 2008 17:12:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 56g2000hsm.googlegroups.com; posting-host=66.162.65.129; posting-account=umyUbgkAAADe5rQC4VzV-ffCoH4N30u3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:825 Date: 2008-06-23T10:11:57-07:00 List-Id: On Jun 20, 3:21=A0pm, "Jeffrey R. Carter" wrote: > Since the correct name for this package is Unbounded_Arrays, No. It's a "container". Implementations are free to use different non-array implementations. > it makes sense to > iterate over it in a manner to iterating over an array. Like all containers, a vector supports iterating over its elements using a cursor. In the unique case of the vector, the container also supports iteration using an explicit index.