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,470860aa3e635a7 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!fdn.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4707A3D0.3070702@obry.net> Date: Sat, 06 Oct 2007 17:03:44 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Matthew Heaney Subject: Re: GNAT for MS Visual Studio References: <13duou81kg3sd1c@corp.supernews.com> <13f3e0vbb05s47c@corp.supernews.com> <13f6eg0te46m2a3@corp.supernews.com> <4xsl4zw3bp.fsf@hod.lan.m-e-leypold.de> <1191357491.860178.230380@22g2000hsm.googlegroups.com> <4702ADCC.7080209@obry.net> <1191439439.120567.172630@g4g2000hsf.googlegroups.com> <4703F02D.3030207@obry.net> <1191682021.844225.236870@g4g2000hsf.googlegroups.com> In-Reply-To: <1191682021.844225.236870@g4g2000hsf.googlegroups.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 06 Oct 2007 17:03:48 CEST NNTP-Posting-Host: 90.8.104.183 X-Trace: 1191683028 news.orange.fr 5103 90.8.104.183:4924 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:2326 Date: 2007-10-06T17:03:48+02:00 List-Id: Matthew Heaney a écrit : > No, this is incorrect. The container keeps track of nested calls > (e.g. Query_Element, Iterate) using a count, in order to prevent > container misuse (e.g. deleting the element while it's being > queried). So even though the logical view of the container doesn't > change, then physical view does change, and so the standard requires > that multiple tasks accessing a container must be properly > synchronized, even when the access is read-only. Outch! Big mistake to require this to me :( Maybe something like "Don’t let best be enemy of good" ! That's probably the first time I'm very surprised and annoy by an Ada design decision. It seems that there is good reasons... but frankly not something really user friendly to me :( 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