comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: containers and garbage collections.
Date: Fri, 12 Sep 2003 17:32:50 +0200
Date: 2003-09-12T17:32:50+02:00	[thread overview]
Message-ID: <2458809.CYNMQ0Kujp@linux1.krischik.com> (raw)

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




             reply	other threads:[~2003-09-12 15:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-12 15:32 Martin Krischik [this message]
2003-09-12 16:41 ` containers and garbage collections Stephen Leake
2003-09-13  9:37   ` Martin Krischik
2003-09-13  3:33 ` Matthew Heaney
2003-09-13  9:45   ` Martin Krischik
2003-09-13 17:10     ` Matthew Heaney
2003-09-15 13:47     ` Dmitry A. Kazakov
2003-09-15 23:11       ` Matthew Heaney
2003-09-16 17:59         ` Martin Krischik
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox