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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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!postnews.google.com!p36g2000prp.googlegroups.com!not-for-mail From: george.priv@gmail.com Newsgroups: comp.lang.ada Subject: Re: Performance of element access in Vector Date: Tue, 20 Jan 2009 14:07:07 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <0a8baaf0-19f7-40c0-a041-884e93fa7020@w39g2000prb.googlegroups.com> <1fp3pbmn4q3o5.1b0fk6lircbld.dlg@40tude.net> NNTP-Posting-Host: 151.196.71.114 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1232489228 28332 127.0.0.1 (20 Jan 2009 22:07:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 20 Jan 2009 22:07:08 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: p36g2000prp.googlegroups.com; posting-host=151.196.71.114; posting-account=VnNb3AoAAACTpRtCcTrcjmPX7cs92k1Q User-Agent: G2/1.0 X-HTTP-Via: 1.1 SPARKS X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4429 Date: 2009-01-20T14:07:07-08:00 List-Id: On Jan 20, 3:26=A0am, "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... > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de Unlike C++ for simple objects I don't see advantage of using vectors vs. arrays in Ada. Only that it provide uniform ways to traverse through all containers? Anything else I am missing?