comp.lang.ada
 help / color / mirror / Atom feed
From: Robert_Matthews <ignored@ramatthews.free-online.co.uk>
Subject: A problem with "interface"
Date: Thu, 05 Feb 2009 15:05:42 +0000
Date: 2009-02-05T15:05:42+00:00	[thread overview]
Message-ID: <zvGdneFPpt7YnRbUnZ2dnUVZ8uednZ2d@posted.plusnet> (raw)

In using interface types with GNAT I have encountered a problem.
Consider the following packages:

package Int is

   type A is interface;
   type B is interface;

   procedure P (Param1 : A; Param2 : B'Class) is abstract;

end Int;

with Int;
package Client is

   type Client_A is new Int.A with null record;
   type Client_B is new Int.B with null record;

   overriding
   procedure Client_P (Param1 : Client_A; Param2 : Client_B'Class);

end Client;

On compiling, GNAT says "Client_P" does not override anything.
Am I making a dumb mistake here - or is it GNAT?

The version of GNAT is GNAT GPL 2008 (20080521).

Thanks in advance,

Robert



             reply	other threads:[~2009-02-05 15:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 15:05 Robert_Matthews [this message]
2009-02-05 16:13 ` A problem with "interface" Jacob Sparre Andersen
2009-02-05 16:14 ` Adam Beneschan
2009-02-06 14:08   ` Robert_Matthews
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox