comp.lang.ada
 help / color / mirror / Atom feed
From: Marius Amado Alves <amado.alves@netcabo.pt>
To: comp.lang.ada@ada-france.org
Subject: Re: Multiple access to one object and deallocation
Date: Wed, 05 Nov 2003 13:39:15 +0000
Date: 2003-11-05T13:39:15+00:00	[thread overview]
Message-ID: <mailman.279.1068039587.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <TL6qb.25$_A.12638@sooner.brightok.net>

On Wed, 2003-11-05 at 13:17, Harry Tucker wrote:
> My question is how to count references to an object so it will be 
> deallocated only after all references have gone out of scope or set to 
> null? An object reference could exist in several lists at any one time.

This is often called "smart pointers" and often effected with storage
pools. There are examples out there.




  reply	other threads:[~2003-11-05 13:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-05 13:17 Multiple access to one object and deallocation Harry Tucker
2003-11-05 13:39 ` Marius Amado Alves [this message]
2003-11-05 13:52 ` Dmitry A. Kazakov
2003-11-05 14:10 ` Preben Randhol
replies disabled

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