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 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: on the use of "limited with" Date: Sun, 9 Oct 2005 13:12:12 +0000 (UTC) Organization: BT Openworld Message-ID: References: <1128779132.336469.160360@z14g2000cwz.googlegroups.com> <1128856766.691404.176910@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: host86-131-222-95.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com 1128863532 2544 86.131.222.95 (9 Oct 2005 13:12:12 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 9 Oct 2005 13:12:12 +0000 (UTC) In-Reply-To: <1128856766.691404.176910@z14g2000cwz.googlegroups.com> X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Xref: g2news1.google.com comp.lang.ada:5525 Date: 2005-10-09T13:12:12+00:00 List-Id: evangeli@cnam.fr wrote: > thanks for the help > does not seem to work neither : > > function get_q(my_tp : in tp) return access q.tq; > p.ads:5:41: anonymous access type definition not allowed here > > do i have to redefine an acces type on q.tq ? Hmmm, from memory, I think after reading John Barnes' paper on this you may have to define the access type to the "limited with"-ed type locally to where you want to use it. It may be that all the Ada05 access type/limited with changes are not yet implemented either. Cheers -- Martin