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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Mon, 10 Oct 2005 19:08:32 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1128779132.336469.160360@z14g2000cwz.googlegroups.com> <1128856766.691404.176910@z14g2000cwz.googlegroups.com> Subject: Re: on the use of "limited with" Date: Mon, 10 Oct 2005 19:12:15 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-iHC9eKDLe8uh8XMqttKE1GNQEpK+Psy0FnXvOrmbwPB0l+Qa13SwOUDQ5bJfg8fOck4l1TJ8ZuF4dhH!vl/eKMFsXChe3hx/0pnLBlOtrshnV3Y1ome38109DGCTuc9/DR4SeRGCbD/ux/9cuMweuhGB5O7k!EI3hgzQSAQXXqA== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5540 Date: 2005-10-10T19:12:15-05:00 List-Id: wrote in message news:1128856766.691404.176910@z14g2000cwz.googlegroups.com... > 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 Apparently, your version of GNAT doesn't implement this feature yet. > do i have to redefine an acces type on q.tq ? Yes, since GNAT apparently doesn't implement anonymous access results. You are only allowed to use the type directly in subprogram specs. if (1) it's a tagged type; and (2) it's a parameter (not the return type). Randy.