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:50:55 -0700
No but this point is on left-side of this subject, anyway,
here we can see one side effect at code design-level:
here we have some symptoms:
- a lack of visibility
- when you can be the owner : "be the owner" and control what is happening
direct effect you are screwing up the garbage collection system
a last comment:
when someone is hill, do you try to fix the symptoms or the reasons?
one rule: there is no circular refs in your design, it's the same for
people who are designing circuits: there is no bridge, there is no
circular refs allowed
if you start with those constraints in mind I can ensure you that you
won't fall in this kind of trap, and always be able to increase the
possibility of your application, circular refs are against every oop
design logic, when you face it, that's the result and the consequence
of a previous mistake,
sure sometimes for various reasons you will use a circular ref
it's not 100% rule, sometimes it's good to be evil!
Cheers!
On Sun, Mar 22, 2009 at 4:22 PM, Clark Cox <email@hidden> wrote:
> It's not very conducive to conversation to make claims, and then
> refuse to back them up, and leave it at "I let you discover it".
>
> On Sun, Mar 22, 2009 at 4:19 PM, mm w <email@hidden> wrote:
>> maybe in your world, anyway there are a bunch of reasons to avoid circular refs
>> I let you discover it
>>
>> Cheers!
>>
>> On Sun, Mar 22, 2009 at 3:58 PM, Clark Cox <email@hidden> wrote:
>>> On Sun, Mar 22, 2009 at 3:37 PM, mm w <email@hidden> wrote:
>>>> 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,
>>>
>>> They can be avoided, but why? They are not an error under garbage
>>> collection, and there is no reason to avoid them.
>>>
>>> --
>>> Clark S. Cox III
>>> email@hidden
>>>
>>
>>
>>
>> --
>> -mmw
>>
>
>
>
> --
> Clark S. Cox III
> email@hidden
>
--
-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