comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Belmont <sbelmont700@gmail.com>
Subject: Re: GNAT - return by anonymous access
Date: Tue, 20 Dec 2011 16:44:35 -0800 (PST)
Date: 2011-12-20T16:44:35-08:00	[thread overview]
Message-ID: <95f3b0fc-af24-4ace-afc9-227e8893ea99@n6g2000vbg.googlegroups.com> (raw)
In-Reply-To: jcr551$2jq$1@munin.nbi.dk

On Dec 20, 6:18 pm, "Randy Brukardt" <ra...@rrsoftware.com> wrote:
>
> Personally, I'd just avoid anonymous access types, but I'm not going to go
> so far as to recommend that (there are things that are hard to do any other
> way).
>

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.  Personally I am suspect of this method, as
it exposes the access value to the nefarious shenanigans other code
could potentially try (hence the original code that was testing ways
of protecting the value inside an object).  Are there other ways of
doing this that aren't so...dubious?



  reply	other threads:[~2011-12-21  0:51 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 [this message]
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
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