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!news.glorb.com!proxad.net!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Sender: obry@PASCAL 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> From: Pascal Obry Date: 06 Jul 2005 09:53:56 +0200 Message-ID: Organization: Home - http://www.obry.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: 06 Jul 2005 09:54:12 CEST NNTP-Posting-Host: 82.124.115.178 X-Trace: 1120636452 news.wanadoo.fr 25046 82.124.115.178:3833 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:11880 Date: 2005-07-06T09:54:12+02:00 List-Id: Martin Dowie writes: > I doubt if that Ada.Containers would be used in systems that have safety > concerns. I think Dmitriy has a good point. For the first time in Ada we have the possibility to create easily a dangling pointer using Cursor. This was not possible before except by using Unchecked_Deallocation. Now I do not see this as an argument to remove them. But in fact the problem we are talking about has happened in AWS. We can't dismiss this just by saying do not use Cursor :) It is a potential problem, we must be sure that it is a known one. As Matthew said it is possible to wrap cursors to avoid this problem for safety reasons. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595