comp.lang.ada
 help / color / mirror / Atom feed
* on the use of "limited with"
@ 2005-10-08 13:45 evangeli
  2005-10-09  7:42 ` Martin Dowie
  0 siblings, 1 reply; 5+ messages in thread
From: evangeli @ 2005-10-08 13:45 UTC (permalink / raw)


hello,
i recently downloaded gnat gpl and tested the new Ada 05 feature
"limited with"
here are two packages which defines two types:

limited with q;
package p is
   type tp_record is private;
   type tp is access all tp_record;
   function get_q(my_tp : in tp) return q.tq;
private
   type tp_record is record ... end record;
end p;
--=====================================--
limited with p;
package q is
   type tq_record is private;
   type tq is access all tq_record;
   function get_p(my_tq : in tq) return p.tp;
private
   type tq_record is record ... end record;
end q;

i naturally get the following errors:
p.ads:5:42: invalid use of incomplete type

q.ads:5:42: invalid use of incomplete type

my question is the following: is there a way to declare p and q in two
separate packages?




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-11  0:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-08 13:45 on the use of "limited with" evangeli
2005-10-09  7:42 ` Martin Dowie
2005-10-09 11:19   ` evangeli
2005-10-09 13:12     ` Martin Dowie
2005-10-11  0:12     ` Randy Brukardt

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