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!news3.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!border2.nntp.ams.giganews.com!nntp.giganews.com!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> Date: Wed, 6 Jul 2005 09:30:29 +0200 Message-ID: NNTP-Posting-Date: 06 Jul 2005 09:29:41 MEST NNTP-Posting-Host: 47b174da.newsread4.arcor-online.net X-Trace: DXC=Nl3bSMEaOkLRG:gi]CKmZG:ejgIfPPldDjW\KbG]kaMHliQbn6H@_EIkF`VnI_fE:H[6LHn;2LCVN7enW;^6ZC`D<=9bOTW=MNN X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:11878 Date: 2005-07-06T09:29:41+02:00 List-Id: 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. Is it a location in the container? Then that should be an index or position. Is it a pointer to an individual element? Then that should be an access type object. Cursor looks like an amorphous mixture inheriting disadvantages of both. > Where the "windows" safer in C or in Ada ? Equally safe. It is just so that in C they are located on the floor... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de