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,366b213c4abb1039,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!newsfeed.straub-nv.de!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: What makes a procedure call 'dispatching' in Ada? Date: Fri, 20 Nov 2009 14:15:33 +0100 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1258722934 13586 212.86.205.70 (20 Nov 2009 13:15:34 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Fri, 20 Nov 2009 13:15:34 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Xref: g2news1.google.com comp.lang.ada:8165 Date: 2009-11-20T14:15:33+01:00 List-Id: Hello, I'm trying to fell may way around object oriented Ada programming, and I think I must be missing something absolutely basic. Please consider the following package: ---%<--- package FOOS is type FOO is abstract tagged null record; procedure P (THIS : in FOO); procedure A (THIS : in FOO) is abstract; end FOOS; package body FOOS is procedure P (THIS : in FOO) is begin A (THIS); end; end FOOS; --->%--- When trying to compile this, I get: foos.adb:6:07: call to abstract function must be dispatching gnatmake: "foos.adb" compilation error What is the compiler trying to tell me here? And how do I go about calling abstract procedures? TIA, Markus