From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Invoking abstract subprograms in Ada95
Date: 19 Apr 2002 12:18:53 -0400
Date: 2002-04-19T16:25:07+00:00 [thread overview]
Message-ID: <uofgfvez6.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 2dbd76f3.0204190515.10e6aef0@posting.google.com
michael.jackson5@virgin.net (Mike) writes:
> In Ada 95 terms I have a package X that contains abstract type Xt and
> describes some abstract behaviour "procedure Z". I also have Ada95
> Child Package X.Y that contains a non abstract type Yt that extends
> and fully completes Xt.
>
> Within package X I have a classwide procedure (actually an XWindows
> Callback) that I want to be invoked by all types of child, *but* there
> are some specific tasks that can only be completed by the concrete
> child (Y in this case) that fully implements procedure Z.
>
> Gnat Ada95 will not let me do this: "Cannot call abstract subprogram"
>
> * Why can I not invoke procedure Z from with package X?
Apparently you have coded a non-dispatching call. Please post the code.
--
-- Stephe
next prev parent reply other threads:[~2002-04-19 16:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 13:15 Invoking abstract subprograms in Ada95 Mike
2002-04-19 16:18 ` Stephen Leake [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-04-22 4:28 Grein, Christoph
2002-04-22 13:24 ` Mike
2002-04-22 14:24 ` Dmitry A. Kazakov
2002-04-22 13:44 Grein, Christoph
2002-04-23 8:36 ` Mike
2002-04-24 7:32 Grein, Christoph
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox