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,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GCC 4.0 Ada.Containers Cursor danger. Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.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: <1120474891.635131.216700@g44g2000cwa.googlegroups.com> <1120575076.876798.108220@g44g2000cwa.googlegroups.com> <1120583470.429264.325450@g43g2000cwa.googlegroups.com> <42cb8d21$0$22761$9b4e6d93@newsread2.arcor-online.net> Date: Wed, 6 Jul 2005 13:36:14 +0200 Message-ID: NNTP-Posting-Date: 06 Jul 2005 13:36:11 MEST NNTP-Posting-Host: 05dadd2d.newsread2.arcor-online.net X-Trace: DXC=h?_LOHY9h9e0_l3b[L=KQcQ5U85hF6f;djW\KbG]kaMhU7^]5?JhlBn\ZOZg1d_T4o[6LHn;2LCVn7enW;^6ZC`d<=9bOTW=MNn X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11893 Date: 2005-07-06T13:36:11+02:00 List-Id: On Wed, 06 Jul 2005 09:50:05 +0200, Georg Bauhaus wrote: > Dmitry A. Kazakov wrote: >> On 5 Jul 2005 10:11:10 -0700, Dmitriy Anisimkov wrote: >> >>>I would propose to have a Ada.Containers subset without cursors for >>>safety reasons. >> >> Yes, or even to remove them completely. >> >> It is not clear to me what the semantics a cursor has. > > Then it's best to have a look at AI302 or the new standard, > and learn what semantics a cursor has, before suggesting > their removal. > > What's the translation of "Was der Bauer nicht kennt, > das frisst er nicht?" "All of the containers specify positions using a cursor, which is similar to an access type in that it designates an element." So? Is it position or access? "Each container includes a cursor, which is a reference to an element within a container. Cursors generally remain valid as long as the container exists and the element referenced is not deleted." Here it drifts to: a pointer to some element in the container. And what does it mean to "generally remain valid"? What could a particularly *invalid* cursor be? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de