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,43aafc250d42730f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-08 09:02:34 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!uni-erlangen.de!news-nue1.dfn.de!news-han1.dfn.de!news.fh-hannover.de!news.cid.net!news.enyo.de!news1.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: controlled type in generic package? Date: 08 Feb 2001 17:56:59 +0100 Organization: Enyo's not your organization Message-ID: <87r919azac.fsf@deneb.enyo.de> References: <3A7FDA9A.C667090F@stn-atlas.de> <95p2ab$463$1@nnrp1.deja.com> <95q1fa$9e$1@usenet.rational.com> <95rpj5$gq7$1@nnrp1.deja.com> <3A82A66D.49DE7EBD@bton.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: supernews.google.com comp.lang.ada:5005 Date: 2001-02-08T17:56:59+01:00 List-Id: John English writes: > Not only that, but by deriving something from Controlled, you're > giving up your ability to derive from anything else. If I want to > derive a new type from an existing (non-Controlled) type and add > a destructor (Finalize), I have to perform lots of acrobatics and > commit all sorts of atrocities on my code to do it! It's just an ordinary mixin construction. Of course, there some syntactical overhead involved, but it's straightforward.