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-Thread: a07f3367d7,97652a7fcb504670 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Got warnings when overriding Initialize and Finalize Date: Fri, 10 Jul 2009 20:10:25 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <16dc507c-4b96-4b53-b46f-2e806f988e6e@h18g2000yqj.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1247274674 3047 69.95.181.76 (11 Jul 2009 01:11:14 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Sat, 11 Jul 2009 01:11:14 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Xref: g2news2.google.com comp.lang.ada:6969 Date: 2009-07-10T20:10:25-05:00 List-Id: "Adam Beneschan" wrote in message news:16dc507c-4b96-4b53-b46f-2e806f988e6e@h18g2000yqj.googlegroups.com... ... > Now, calling Op on an object of type T2 may give you either the > inherited one or the overriding one, depending on whether the private > part of Pak2 is visible at that point. It may be that the compiler, > with this case in mind, displays a warning any time there's an > override in the private part of a package; but it seems like it's > going overboard in this case. The compiler needs to tailor its > warnings a little better. That's just my guess as to why you're > seeing the warnings. But there isn't anything wrong with your > original code. For the record, I agree with Adam. Claw is full of overridings like this; our rule was that overridings should be done in the private part as there is no reason for the client to know whether the routines are overridden or just inherited. Looks like a bogus warning to me (and Adam's explanation makes sense to me, too). Randy.