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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,bb7cc916bd63ab43 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Performance of element access in Vector Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <0a8baaf0-19f7-40c0-a041-884e93fa7020@w39g2000prb.googlegroups.com> <1fp3pbmn4q3o5.1b0fk6lircbld.dlg@40tude.net> Date: Wed, 21 Jan 2009 11:19:08 +0100 Message-ID: <12j12r8i016ec$.7w03wnt52mdi$.dlg@40tude.net> NNTP-Posting-Date: 21 Jan 2009 11:19:08 CET NNTP-Posting-Host: 97a32349.newsspool2.arcor-online.net X-Trace: DXC=_XVJb7^X?W6]E=H1Q9`787A9EHlD;3Yc24Fo<]lROoR1^YC2XCjHcb9^FoTjPekXk8DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2U]SL>?W94m? X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4436 Date: 2009-01-21T11:19:08+01:00 List-Id: On Wed, 21 Jan 2009 01:19:48 -0800 (PST), Maciej Sobczak wrote: > On 21 Sty, 09:59, "Dmitry A. Kazakov" > wrote: > >>> Only that it provide uniform ways to traverse >>> through all containers? >> >> Arrays do it already. > > You mean that arrays have the Iterate method? The language Ada has iteration methods, for example for-loop. > Or cursor-like interface > with No_Element sentinel? I'm afraid they don't. They have array interface, which is much better than cursors and even so No_Element-stuff. >> Ordered containers must have array interface. > > You mean that containers overload the () indexing? I'm afraid they > don't. That containers implement element access using an index from 1D space, if we are talking about iterations. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de