Re: Explicit release when using garbage collection with circular references
Re: Explicit release when using garbage collection with circular references
- Subject: Re: Explicit release when using garbage collection with circular references
- From: mm w <email@hidden>
- Date: Sun, 22 Mar 2009 16:12:03 -0700
On Sun, Mar 22, 2009 at 3:54 PM, Jean-Daniel Dupas
<email@hidden> wrote:
>
> Le 22 mars 09 à 23:37, mm w a écrit :
>
>> Because I am like this I won't do the job for you, I will only point
>> you directions, that's it
>>
>> Google "garbage collection", it's naive to think that's a "linear" tree.
>>
>> What Bill told you is right, and my comment is following his thought
>>
>> Avoiding circular refs: in 95% of cases it can be avoided, by
>> refactoring his work,
>> taking a pen and a white paper... and think
>>
>
> I don't understand your point here.
>
> Circular references have not to be avoid. They are not an error.
>
yes that's true
> As previously mention, the garbage collector tracks root objects, and so it
> should properly deal with circular references.
>
yep right, my point was circular refs are bad
> In a reference counted world, they are valid too, as long as the who retain
> who policy is properly designed.
>
>
yep right, my point was circular refs are bad
--
-mmw
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden