From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: GNAT - return by anonymous access
Date: Wed, 21 Dec 2011 13:05:39 +0100
Date: 2011-12-21T13:05:39+01:00 [thread overview]
Message-ID: <4ef1cb93$0$7626$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <3a6fad50-c289-4300-bcc2-fb1f9f0b7e7a@l29g2000yqf.googlegroups.com>
On 21.12.11 12:43, AdaMagica wrote:
> On 21 Dez., 12:05, Georg Bauhaus<rm.dash-bauh...@futureapps.de>
> wrote:
>> X := new Limited_Type'(Build_in_Place_Function);
>
> declare
> X: Some_Limited_Type := Function_Call_or_Aggregate; -- this is
> built in place (no pointer in use)
OP wanted to return an allocated object of limited type (which
is when GNAT issues its message). If there is a reason for doing
so (maybe allocating a global library level task at some nested
level), then what can be done without a redesign?
(Is everyone happy with dropping return-by-reference for limited
types? There was a use case for these. I guess it has not
disappeared, whatever difficulties implementers might have
encountered...)
next prev parent reply other threads:[~2011-12-21 12:05 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-17 19:17 GNAT - return by anonymous access Simon Belmont
2011-12-17 19:51 ` Simon Wright
2011-12-18 9:08 ` Georg Bauhaus
2011-12-19 23:46 ` Randy Brukardt
2011-12-20 0:14 ` Shark8
2011-12-20 23:18 ` Randy Brukardt
2011-12-21 0:44 ` Simon Belmont
2011-12-21 7:29 ` AdaMagica
2011-12-21 11:05 ` Georg Bauhaus
2011-12-21 11:43 ` AdaMagica
2011-12-21 12:05 ` Georg Bauhaus [this message]
2011-12-22 0:33 ` Randy Brukardt
2011-12-22 0:33 ` Simon Belmont
2011-12-22 7:11 ` Adam Beneschan
2011-12-22 22:11 ` Simon Belmont
2011-12-23 0:56 ` Randy Brukardt
2011-12-23 13:20 ` Simon Belmont
2011-12-27 23:51 ` Randy Brukardt
2011-12-20 23:53 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox