From: Robert_Matthews <ignored@ramatthews.free-online.co.uk>
Subject: Another problem with "interface"
Date: Mon, 16 Feb 2009 09:53:59 +0000
Date: 2009-02-16T09:53:59+00:00 [thread overview]
Message-ID: <mJednUhUY_4tqgTUnZ2dneKdnZydnZ2d@posted.plusnet> (raw)
In using interface types with GNAT I have encountered another problem.
Consider the following package:
package Test is
type A_Type is limited interface;
procedure P (A : in out A_Type; D : Integer) is abstract;
protected type New_A_Type is new A_Type
with
procedure P (D : Integer);
-- other subprograms...
private
F : Integer;
end New_A_Type;
function Set_A return New_A_Type;
end Test;
GNAT gives an error for the function Set_A:
"operation can be dispatching in only one type",
which leaves me mystified. Am I making another
dumb mistake? Please help!
The version of GNAT is GNAT GPL 2008 (20080521).
Thanks in advance,
Robert
next reply other threads:[~2009-02-16 9:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-16 9:53 Robert_Matthews [this message]
2009-02-16 10:26 ` Another problem with "interface" christoph.grein
2009-02-16 10:40 ` Georg Bauhaus
2009-02-16 11:27 ` Robert_Matthews
2009-02-16 11:45 ` Egil Høvik
2009-02-16 11:54 ` christoph.grein
2009-02-16 13:29 ` Dmitry A. Kazakov
2009-02-16 13:56 ` Georg Bauhaus
2009-02-17 16:28 ` 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