Re: Performance problem with GC enabled
Re: Performance problem with GC enabled
- Subject: Re: Performance problem with GC enabled
- From: Michael Ash <email@hidden>
- Date: Sat, 14 Mar 2009 09:50:30 -0400
On Sat, Mar 14, 2009 at 6:11 AM, Paul Sanders <email@hidden> wrote:
>> If Apple later on wants to change how it works
>> internally so that the function returns a temporary object instead,
>> well, too bad, can't!
>
> Well, that's patently untrue. It can just return a temporary object with a
> retain count of 1.
No, it can't. I specified a Get function, where convention specifies
that the caller does not own it. Even if Apple were willing to break
with convention, such a change would cause every existing client of
the API to start leaking.
Mike
_______________________________________________
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