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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,46474020a5b291b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Free'ing dynamic abstract tagged types.. Date: Fri, 22 Sep 2006 09:41:07 +0200 Message-ID: <4nhic5Fajj8vU1@individual.net> References: <1158872883.994303.80430@b28g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net 4mwaemDNVD9BdJIaN5oy/A4uPLAnmxYY3ViG/ejHvr5QJXw7A= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:6695 Date: 2006-09-22T09:41:07+02:00 List-Id: Randy Brukardt wrote: (snip) > Since you can't add Controlled to an inheritance tree after the fact, I > think that *all* tagged type trees should be derived from Controlled or > Limited_Controlled. (Otherwise, you're saying that the extensions don't > need any clean-up, which is likely to be constraining.) This is something I've wondered some times with the introduction of interfaces in Ada05: Could not have been defined in Ada.Finalization a corresponding interface? This way objects not rooted at Controlled could later easily add finalization.