comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: GNAT - return by anonymous access
Date: Wed, 21 Dec 2011 12:05:07 +0100
Date: 2011-12-21T12:05:07+01:00	[thread overview]
Message-ID: <4ef1bd63$0$6567$9b4e6d93@newsspool4.arcor-online.net> (raw)
In-Reply-To: <91845790-2447-4b2c-a6b5-1a52557c8c17@d10g2000vbk.googlegroups.com>

On 21.12.11 08:29, AdaMagica wrote:
> On 21 Dez., 01:44, Simon Belmont<sbelmont...@gmail.com>  wrote:
>> It is my understanding that Ada05 has done away with 'return-by-
>> reference' in favor of 'return-by-anonymous-access', which would lead
>> me to believe that you would *have* to use them if you want to return
>> an allocated limited type.
>
> Hm, no, return-by-reference has been replaced by build-in-place.

GNAT recommends to use a pointer, though, in one of its
error messages. Perhaps this should be changed so that
it suggests a construct like

   X := new Limited_Type'(Build_in_Place_Function);

?





  reply	other threads:[~2011-12-21 11: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 [this message]
2011-12-21 11:43             ` AdaMagica
2011-12-21 12:05               ` Georg Bauhaus
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