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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-16 11:16:13 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!nntp.infostrada.it!newsfeed01.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: Re: containers and garbage collections. Date: Tue, 16 Sep 2003 19:59:11 +0200 Organization: AdaCL Message-ID: <2203063.rkHteqzyCe@linux1.krischik.com> References: <2458809.CYNMQ0Kujp@linux1.krischik.com> <23635057.dHrhOAZpeb@linux1.krischik.com> <4bgbmvc1933igu2olve437akuoc0c2lih0@4ax.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 1063735989 01 4661 PegnVNrSSDYqfx 030916 18:13:09 X-Complaints-To: usenet-abuse@t-online.de X-ID: GDAzckZS8eaHVe2O2tbVcyLtsi9LytOuoUm4hNea8RpgoZC3Mq4e8V User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:42581 Date: 2003-09-16T19:59:11+02:00 List-Id: Matthew Heaney wrote: > Dmitry A. Kazakov writes: >> What you will lose with it, and there is always something to lose, is >> that the type operations will not be considered dispatching. So if the >> actual of Element_Type is class-wide, and you want to dispatch >> somewhere in a generic body, you will need to pass a [class-wide] >> wrapper subprogram around a primitive operation instead of the >> primitive operation itself. > That wasn't required for his problem. All the dispatching is done > outside of the generic. Initialize, Adjust, and Finalize are dispatching and will implicitly be called (on GNAT by the hidden procedures Deep_Initialize, Deep_Adjust, and Deep_Finalize which are also dispatching). Still, I found you suggestion very interesting and I have started to work on it. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com