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,ASCII-7-bit X-Google-Thread: 103376,927ae253da8bb547 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-31 12:59:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Specialization Date: 31 May 2002 20:44:34 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: <4519e058.0205300909.5bfb317d@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1022875129 nnrp-01:19856 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:25116 Date: 2002-05-31T20:44:34+01:00 List-Id: 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