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=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,25589848af22007f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-10 10:11:55 PST Path: archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-03!supernews.com!news-out.visi.com!hermes.visi.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9q1uah$6ir$1@trog.dera.gov.uk> Subject: Re: Should the compiler accept this? Message-ID: <1j%w7.23291$ev2.31932@www.newsranger.com> X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 10 Oct 2001 13:11:25 EDT Organization: http://www.newsranger.com Date: Wed, 10 Oct 2001 17:11:25 GMT Xref: archiver1.google.com comp.lang.ada:14178 Date: 2001-10-10T17:11:25+00:00 List-Id: In article <9q1uah$6ir$1@trog.dera.gov.uk>, Stephen Cole says... >The compiler is not complaining about it, but according to the rules of Ada >and not just what the compiler accepts, should I be defining a function >Hello() for derived type MyNewRcd2?? Or can I always assume that the Hello() >defined for type MyNewRcd will actually catch calls to Hello() made with an >actual MyNewRcd2 type variable passed as a parameter to Add()? The only time you *have* to define an overriding subprogram is when the parent's version of the subprogram was abstract. Otherwise, you can just let it dispatch to the parent's subprogram (which it will do). --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.