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-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!news2.euro.net!newsfeed.freenet.ag!newsfeed.freenet.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 25 Feb 2010 10:22:16 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Status of AdaCL: Ada Class Library References: <05a58751-7a13-48d6-9080-91322817bfe8@t32g2000pre.googlegroups.com> <7ue685FpluU1@mid.individual.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: <4b864149$0$6578$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 25 Feb 2010 10:22:17 CET NNTP-Posting-Host: 238a7f2a.newsspool3.arcor-online.net X-Trace: DXC=80cnjS0U>aMlU`@c^jLCbJMcF=Q^Z^V3H4Fo<]lROoRA8kFWRE0Pj]@nc\616M64>JLh>_cHTX3jMSRSi?FV6`eO X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9316 Date: 2010-02-25T10:22:17+01:00 List-Id: Randy Brukardt schrieb: > Am 22.02.2010, 02:51 Uhr, schrieb Bj�rn Persson : > >> I had intended to switch from Charles to Ada.Containers, but I changed my >> mind when I learned that Ada.Containers can't even be read by multiple > > tasks at once. > It's easy to wrap container operations in a protected object, and that is > always allowed (such operations are not potentially blocking). That allows > tailoring the locking for the actual usage, and even hiding the actual > container to prevent abuse. Indeed, arent' there advantages in hiding data stores like Ada.Containers behind some facade, whether the use is sequential or not: everything else always smells of exposed internal data structures, or lack of abstraction. There need to be good reasons for using List, Set, etc. as is, I think. Just like there should be good reasons to expose arrays.