From: Simon Wright <simon@pushface.org>
Subject: Re: Specialization
Date: 31 May 2002 20:44:34 +0100
Date: 2002-05-31T20:44:34+01:00 [thread overview]
Message-ID: <x7vsn48hzkt.fsf@pushface.org> (raw)
In-Reply-To: 4519e058.0205300909.5bfb317d@posting.google.com
dennison@telepath.com (Ted Dennison) writes:
> Why wouldn't that happen automaticly? If you want to *manually*
> control finalization, you probably shouldn't be using controlled
> types.
I _knew_ there was a problem in the Booch Containers around here
... if you use a bounded container it places the elements in an array,
so if they need finalization it may well happen long after you were
expecting it to. I guess I'd need to add something to the generic ..
generic
type Item is private;
with function "=" (L, R : Item) return Boolean is <>;
Null_Value : Item; -- new
package BC.Containers is
which means yet another non-defaultable generic parameter, people are
fed up enough with instantiating all these nested generics as it is. I
suppose this could be deferred to the forms that need it, clearly
Unbounded doesn't:
generic
type Item is private;
with function "=" (L, R : Item) return Boolean is <>;
package BC.Containers is
generic
Maximum_Size : Positive;
Null_Value : Item; -- new
package BC.Containers.Collections.Bounded is
generic
Storage : in out System.Storage_Pools.Root_Storage_Pool'Class;
package BC.Containers.Collections.Unbounded is
next prev parent reply other threads:[~2002-05-31 19:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-30 12:39 Specialization Baugereau
2002-05-30 17:09 ` Specialization Ted Dennison
2002-05-30 17:29 ` Specialization Baugereau
2002-05-30 19:20 ` Specialization Stephen Leake
2002-05-30 19:48 ` Specialization Baugereau
2002-05-31 1:18 ` Specialization Jim Rogers
2002-05-31 5:41 ` Specialization Sergey Koshcheyev
2002-05-31 11:36 ` Specialization Baugereau
2002-05-31 14:08 ` Specialization Jim Rogers
2002-05-31 16:45 ` Specialization Hyman Rosen
2002-05-31 17:05 ` Specialization Sergey Koshcheyev
2002-05-31 17:40 ` Specialization Hyman Rosen
2002-05-31 20:04 ` Specialization Sergey Koshcheyev
2002-05-31 21:25 ` Specialization Hyman Rosen
2002-05-31 13:27 ` Specialization Stephen Leake
2002-05-31 19:46 ` Specialization Simon Wright
2002-06-01 15:30 ` Specialization Stephen Leake
2002-05-31 19:44 ` Simon Wright [this message]
2002-06-01 15:25 ` Specialization Stephen Leake
2002-06-01 17:12 ` Specialization Simon Wright
2002-06-01 19:50 ` Specialization Stephen Leake
2002-05-30 17:46 ` Specialization Toshitaka Kumano
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox