comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Design of cross referring types/classes and proper usage of containers
Date: Tue, 4 Aug 2015 14:13:41 +0200
Date: 2015-08-04T14:13:41+02:00	[thread overview]
Message-ID: <186o8cox1jqwa.yahqsx8p0k84$.dlg@40tude.net> (raw)
In-Reply-To: 8b424e66-337a-4943-91d1-e421312b5c95@googlegroups.com

On Tue, 4 Aug 2015 04:43:25 -0700 (PDT), Serge Robyns wrote:

> Is there any point of attention when using access variables to containers? 
> Any risk of dangling pointers because of operations on the elements of the
> map (updates)?

When objects are clearly scoped or known to be permanent or allocated in an
arena with a defined life time there is nothing to worry about.

In all other cases I use reference counted objects with hard references to
them within the maps. In some rare cases it could be weak references as
well.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  reply	other threads:[~2015-08-04 12:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-03 16:08 Design of cross referring types/classes and proper usage of containers Serge Robyns
2015-08-03 16:14 ` Serge Robyns
2015-08-03 20:17   ` Georg Bauhaus
2015-08-03 16:22 ` Dmitry A. Kazakov
2015-08-04 11:43   ` Serge Robyns
2015-08-04 12:13     ` Dmitry A. Kazakov [this message]
2015-08-04 19:00       ` Serge Robyns
2015-08-04 19:20         ` Jeffrey R. Carter
2015-08-04 20:27         ` Randy Brukardt
2015-08-04 21:21         ` Simon Wright
2015-08-08 11:25           ` Serge Robyns
2015-08-09  3:11             ` Randy Brukardt
2015-08-09 13:33               ` Serge Robyns
2015-08-05  7:37         ` Dmitry A. Kazakov
2015-08-05 17:51           ` Serge Robyns
2015-08-05 19:21             ` Dmitry A. Kazakov
2015-08-06  7:00               ` Georg Bauhaus
replies disabled

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