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,99f33f51845a7793 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-12 07:06:57 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: 'withing' problem Date: Mon, 12 Nov 2001 10:10:20 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3be27344$0$227$ed9e5944@reading.news.pipex.net> <3BE42900.7590E899@adaworks.com> <3be65f4c$0$237$ed9e5944@reading.news.pipex.net> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:16322 Date: 2001-11-12T10:10:20-05:00 List-Id: "Preben Randhol" wrote in message news:slrn9uqgc5.cu.randhol+abuse@kiuk0156.chembio.ntnu.no... > On Fri, 9 Nov 2001 15:28:48 -0500, Matthew Heaney wrote: > > package body Patients is > > > > procedure Visit_Doctor > > (Patient : in out Patient_Type; > > Doctor : in out Doctor_Type) is > > begin > > Treat_Patient (Doctor, P); > ^ > shouldn't it be Patient here? > > gnatgcc -c patients.adb > patients.adb:9:30: "P" is undefined > gnatmake: "patients.adb" compilation error > > > end; Yes. I should also have declared object Doctor as type Doctor_Type'Class (so that Treat_Doctor dispatches).