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: 103376,b2e3f0346403c575 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Dispatching confusion Date: Sun, 18 Jul 2010 09:40:12 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1279460399 7181 192.74.137.71 (18 Jul 2010 13:39:59 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sun, 18 Jul 2010 13:39:59 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:Cg23gOcO2mTQlJluBOy1a5vJti0= Xref: g2news1.google.com comp.lang.ada:12460 Date: 2010-07-18T09:40:12-04:00 List-Id: "Marc A. Criley" writes: > package Wrack_Machinery is > > type Wrack_Base is abstract tagged null record; You forgot this one: procedure Crank(WC : Wrack_Base) is abstract; > procedure Dispatcher(W : Wrack_Base'Class); > > type Wrack_Client_Base is new Wrack_Base with null record; > > procedure Crank(WC : Wrack_Client_Base); It would be a good idea to say "overriding", here and below: overriding procedure Crank(WC : Wrack_Client_Base); And to use the GNAT style switch that warns of missing "overriding". > type Wrack_Pub_Base is new Wrack_Base with null record; > > procedure Crank (WP : Wrack_Pub_Base); > > end Wrack_Machinery; - Bob