comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: on the use of "limited with"
Date: Mon, 10 Oct 2005 19:12:15 -0500
Date: 2005-10-10T19:12:15-05:00	[thread overview]
Message-ID: <au-dnUHJdIodn9benZ2dnUVZ_tKdnZ2d@megapath.net> (raw)
In-Reply-To: 1128856766.691404.176910@z14g2000cwz.googlegroups.com

<evangeli@cnam.fr> 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.






      parent reply	other threads:[~2005-10-11  0:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
replies disabled

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