From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e6fd8711d3f26013,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: evangeli@cnam.fr Newsgroups: comp.lang.ada Subject: on the use of "limited with" Date: 8 Oct 2005 06:45:32 -0700 Organization: http://groups.google.com Message-ID: <1128779132.336469.160360@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 82.123.147.170 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1128779137 24845 127.0.0.1 (8 Oct 2005 13:45:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 8 Oct 2005 13:45:37 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=82.123.147.170; posting-account=5dlFbAwAAAAf9N8cARqQjYujaztxzGdq Xref: g2news1.google.com comp.lang.ada:5510 Date: 2005-10-08T06:45:32-07:00 List-Id: 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?