comp.lang.ada
 help / color / mirror / Atom feed
From: George J <ivanov_george@list.ru>
Subject: Re: Ada 2005,Doubly_Linked_List with Controlled parameter
Date: Wed, 6 Apr 2016 18:28:46 -0700 (PDT)
Date: 2016-04-06T18:28:46-07:00	[thread overview]
Message-ID: <fe83015d-bb0d-45d1-80f7-0ee54632ae52@googlegroups.com> (raw)
In-Reply-To: <ne3rji$vrr$1@loke.gir.dk>

> Note that you can write something like your original code, but it has to use 
> reference counts and an overriding of Adjust in order to manage the access 
> value properly (since the container copies the objects, and thus you have to 
> support that). I think Christoph Grein's safe pointers give an example of 
> how that could be done.
> 
> In this case, the various alternatives suggested are better, since the 
> compiler/runtime is doing that complicated work and you don't have to. But 
> sometimes you need to manage an object this way, so it's valuable to know 
> that it is possible.
> 
>                               Randy.

Thanks, Randy! I've found and added Christoph Grein's "Safe pointers" materials to bookmarks to read some later.

      parent reply	other threads:[~2016-04-07  1:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05  2:03 Ada 2005,Doubly_Linked_List with Controlled parameter George J
2016-04-05  2:27 ` Jeffrey R. Carter
2016-04-05  3:00   ` George J
2016-04-05  4:13     ` George J
2016-04-05  6:20     ` Jeffrey R. Carter
2016-04-05  6:31       ` George J
2016-04-05  7:58     ` Dmitry A. Kazakov
2016-04-05  8:09       ` George J
2016-04-05  8:35       ` George J
2016-04-05  8:50         ` Dmitry A. Kazakov
2016-04-05  8:57           ` George J
2016-04-05 16:22         ` Jeffrey R. Carter
2016-04-06  1:14           ` George J
2016-04-05  3:25   ` George J
2016-04-05  5:24     ` Jeffrey R. Carter
2016-04-05  6:30       ` George J
2016-04-06 20:29         ` Randy Brukardt
2016-04-06 21:04           ` Jeffrey R. Carter
2016-04-07  1:28           ` George J [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