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,d7cc034a367221eb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-05 20:43:10 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.frmt1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: accessing subprogram & inheritance problem References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Tue, 06 Feb 2001 04:43:09 GMT NNTP-Posting-Host: 24.20.190.201 X-Complaints-To: abuse@home.net X-Trace: news1.frmt1.sfba.home.com 981434589 24.20.190.201 (Mon, 05 Feb 2001 20:43:09 PST) NNTP-Posting-Date: Mon, 05 Feb 2001 20:43:09 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:4959 Date: 2001-02-06T04:43:09+00:00 List-Id: >I would like to have a subprogram pointer in the root class which >can be used to point to the subprograms in the child class as well. As a general rule, if Ada makes it hard to do something one way, it's a good bet there are problems that way, and there is a better approach. In this case, why not just use dispatching, or even just overloading, to call the right ..._Action routine, rather than futz about with a pointer?