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-07 02:17:48 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: controlled type in generic package? Date: 7 Feb 2001 10:11:26 GMT Organization: IKS GmbH Jena Distribution: world Message-ID: References: <3A7FDA9A.C667090F@stn-atlas.de> <95q19j$9d$1@usenet.rational.com> NNTP-Posting-Host: taranis.iks-jena.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.6.3 (Linux) Xref: supernews.google.com comp.lang.ada:4923 Date: 2001-02-07T10:11:26+00:00 List-Id: * Mark Lundquist wrote: >Lutz Donnerhacke wrote in message >> Yep. The derivation tree must be public: > >That's not true! There's nothing wrong with this code... > >The compilation error that was reported would have been due to the >instantiation. The instantiation is a copy of the generic template, so you >can't instantiate a generic that does something that would be illegal to do >in the same place if it weren't in a generic :-). In this case, that >something is to declare a type extension that's statically deeper than the >parent. I don't understand the reason, but will keep it in mind, until I came across this situation. >You certainly can derive privately -- and should, unless there's a reason >not to. Fine.