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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bae7ef2665942955,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-12 09:13:13 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: containers and garbage collections. Date: Fri, 12 Sep 2003 17:32:50 +0200 Organization: AdaCL Message-ID: <2458809.CYNMQ0Kujp@linux1.krischik.com> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1063383053 04 28613 ZUvmVVWGTlA9CX 030912 16:10:53 X-Complaints-To: usenet-abuse@t-online.de X-ID: S3YE2yZeoeSha30dEbRL5X2Xku3mI++aaPWzHNXl3s4mAxBdN+Whch User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:42417 Date: 2003-09-12T17:32:50+02:00 List-Id: Hello, with this article I want to bring two of my discussions together. On one side I am avocating garbage collection and one argument against it is that proper container library will make garbage collection unneccesary. One the other side I am avocating a more complete container librarys and one argument against it is that one can allways use access types. In Germany we say that the "cat bites is own tail" here. Without garbage collection access types are pain in the bud. And when the container library only stores "type element is private;" than one need to use access types as element. I have proven that both options are possible I have implemented a garbage collected storrage pool for GNAT. I also have created containers for "type Element (<>) is abstract tagged private;" and I belive "type Element is array (Index range <>) of Item;" is possible as well (Enabling collection of Strings). Both can't be done with C++ templates - so we should not take the all mighty STL as an example. Any thougts? With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com