[Newbies] Re: Object references
miguel.coba at gmail.com
Tue Apr 21 15:21:22 UTC 2009
Oh, yes, that's just what I need. From the class comment of WeakArray:
"WeakArray is an array which holds only weakly on its elements. This
means whenever an object is only referenced by instances of WeakArray
it will be garbage collected".
Thank you Nicolas.
On Tue, Apr 21, 2009 at 10:14 AM, nicolas cellier <ncellier at ifrance.com> wrote:
> Miguel Enrique Cobá Martínez <miguel.coba <at> gmail.com> writes:
>> snip... (sorry, gmane want this)
>> The question is. When you have an object that is referenced from many
>> places, but only one of them is the correct according to the problem
>> domain, how do you manage the adding, removing and updating of the
>> object to the other interested?
>> Is there a guideline here?
>> Thanks for the advise,
>> Miguel Cobá
> What you need is a WeakArray or some cousin of it.
> Browse this class and examples of use.
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
More information about the Beginners