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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Got warnings when overriding Initialize and Finalize Date: Tue, 14 Jul 2009 10:54:53 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <16dc507c-4b96-4b53-b46f-2e806f988e6e@h18g2000yqj.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1247583293 13575 192.74.137.71 (14 Jul 2009 14:54:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 14 Jul 2009 14:54:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:yFIexnmU3hHsnXrekr+ydXfXRnY= Xref: g2news2.google.com comp.lang.ada:7048 Date: 2009-07-14T10:54:53-04:00 List-Id: "Randy Brukardt" writes: > "Adam Beneschan" wrote in message > news:16dc507c-4b96-4b53-b46f-2e806f988e6e@h18g2000yqj.googlegroups.com... >>...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). For what it's worth, the latest version of GNAT Pro does not give these bogus warnings. I don't know if the fix has made it into public version(s) yet. - Bob