From: pascalo@cln46ac.der.edfgdf.fr (Pascal OBRY)
Subject: Re: (no subject given)
Date: 1996/02/22
Date: 1996-02-22T00:00:00+00:00 [thread overview]
Message-ID: <w4ohqroabc.fsf@cln46ac.der.edfgdf.fr> (raw)
In-Reply-To: 199602211831.TAA01734@vega.gic.tat.upm.es
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]
>I would like to know why the gnat sends the message :
> "type (Unit) must be declared abstract or Set (procedure) overrides"
>when I'm compiling the package body "Controller-p.adb";the error is detected
>in the specification, i.e., in "Controller-p.ads".
GNAT is right. you must override Set has you override Control. These
procedures are abstracts.
Set is not overrided in Controller.P. The Set in Controller.P has not the same
set of parameters (they are 2 differents procedures) :
In Controller :
procedure Set (Device : in out Unit) is abstract;
In Controller.P :
procedure Set (Device : in out Proportional_Controller;
Gain : in Parameter);
Hope this helps,
Pascal.
--
--|------------------------------------------------------------
--| Pascal OBRY Team-Ada Member |
--| |
--| EDF-DER-IPN-SID- Ing�nierie des Syst�mes d'Informations |
--| |
--| Bureau G1-010 e-mail: Pascal.Obry@der.edfgdf.fr |
--| 1 Av G�n�ral de Gaulle voice : +33-1-47.65.50.91 |
--| 92141 Clamart CEDEX fax : +33-1-47.65.50.07 |
--| FRANCE |
--|------------------------------------------------------------
--| "The best way to travel is by means of imagination"
next prev parent reply other threads:[~1996-02-22 0:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-21 0:00 (no subject given) pruiz
1996-02-22 0:00 ` Pascal OBRY [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-04-19 0:00 Chau
1998-04-19 0:00 ` Matthew Heaney
1998-04-19 0:00 ` Matthew Heaney
1996-09-03 0:00 Chris Sparks
1996-09-04 0:00 ` Jon S Anthony
1996-09-05 0:00 ` Robert Dewar
1996-09-06 0:00 ` Jon S Anthony
1996-07-05 0:00 JOHN LY
1994-12-21 20:07 Eric Baker
1994-11-20 20:12 Terry Mellon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox