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,f2690a5e963b61b6 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread1.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: GCC 4.0 Ada.Containers Cursor danger. 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> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 07 Jul 2005 12:36:37 GMT NNTP-Posting-Host: 24.149.57.125 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.atl.earthlink.net 1120739797 24.149.57.125 (Thu, 07 Jul 2005 05:36:37 PDT) NNTP-Posting-Date: Thu, 07 Jul 2005 05:36:37 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:11927 Date: 2005-07-07T12:36:37+00:00 List-Id: "Dmitry A. Kazakov" writes: > The problem with cursors is that they are quite difficult to get right > for mutable containers. I tend to believe that cursor is a wrong > abstraction there. What does this mean? "Difficult to get right" for whom? What is a "mutable" container? I suggest you peruse the !examples secton of the AI: You might also read my original API proposal, which has more !examples: You should also peruse the actual code examples here: I just gave a tutorial in York a couple of weeks ago. The teaching material is here: You might also want to pick up a book about the STL. Perhaps if you tell us what problem you're trying to solve, then we can show the best way to solve it using the container library. -Matt