* problem with type new limited private
@ 1995-02-22 20:10 DELROEUX JEAN-YVES
1995-02-24 0:18 ` Cyrille Comar
0 siblings, 1 reply; 2+ messages in thread
From: DELROEUX JEAN-YVES @ 1995-02-22 20:10 UTC (permalink / raw)
Hello, I use this :
package pac_voit is
type voit is new controlled with private;
procedure ...
private
type voit is
record
a : integer;
end record;
end pac_voit;
But when I compile with gnat 2.00 under warp, it give me the error :
type voit must be declared as tagged.
Why ????????
I try to define voit as tagged, but it doesn't work. Can someone tell me what I can do ?
Thanks for your help
DELROEUX Jean - Yves
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: problem with type new limited private
1995-02-22 20:10 problem with type new limited private DELROEUX JEAN-YVES
@ 1995-02-24 0:18 ` Cyrille Comar
0 siblings, 0 replies; 2+ messages in thread
From: Cyrille Comar @ 1995-02-24 0:18 UTC (permalink / raw)
jydelr@vub.ac.be (DELROEUX JEAN-YVES) writes:
: package pac_voit is
: type voit is new controlled with private;
: procedure ...
: private
: type voit is
: record
: a : integer;
: end record;
: end pac_voit;
: But when I compile with gnat 2.00 under warp, it give me the error :
: type voit must be declared as tagged.
:
: Why ????????
because it is not legal ;-)
The partial view of 'voit' is a private extension so the full view has
no choice but being a record extension... That is the rule!
:
: I try to define voit as tagged, but it doesn't work. Can someone tell me what I can do ?
:
what you most probably want is
type voit is new Controlled with
record
a : integer;
end record;
--
------------------------------------------------------------------------
Cyrille Comar, E-mail: comar@cs.nyu.edu
Gnat Project US phone: (212) 998-3489
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-24 0:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-22 20:10 problem with type new limited private DELROEUX JEAN-YVES
1995-02-24 0:18 ` Cyrille Comar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox