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 Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool4.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="iso-8859-1" Content-Transfer-Encoding: 8bit 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 09:59:16 +0100 Message-ID: NNTP-Posting-Date: 21 Jan 2009 09:59:16 CET NNTP-Posting-Host: 18eb20bf.newsspool4.arcor-online.net X-Trace: DXC=_ZGQRP;:NU;;]cDoEWD6A44IUKK1DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg2^PXk1jaM559 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4433 Date: 2009-01-21T09:59:16+01:00 List-Id: On Tue, 20 Jan 2009 14:07:07 -0800 (PST), george.priv@gmail.com wrote: > On Jan 20, 3:26�am, "Dmitry A. Kazakov" > wrote: >> On Tue, 20 Jan 2009 00:03:03 -0800 (PST), Maciej Sobczak wrote: >>> The difference is, however, that it is possible to use vectors in C++ >>> without going into undefined behavior, whereas it seems to be >>> impossible to use Vectors in Ada without being slow. >> >> There might be something wrong with the concept they share... >> > Unlike C++ for simple objects I don't see advantage of using vectors > vs. arrays in Ada. Yes > Only that it provide uniform ways to traverse > through all containers? Arrays do it already. Ordered containers must have array interface. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de