Re: Releasing Objects
Re: Releasing Objects
- Subject: Re: Releasing Objects
- From: Sherm Pendley <email@hidden>
- Date: Thu, 24 Dec 2009 18:16:26 -0500
On Thu, Dec 24, 2009 at 5:13 PM, Greg Parker <email@hidden> wrote:
>
> More precisely, there's exactly one short-circuit check and thus only one selector value. Under GC, @selector(retain) == @selector(release) == @selector(autorelease) == @selector(dealloc) == @selector(retainCount). Happily, `return self` works to implement all of those.
Just out of curiosity, is that really a short-circuit in the
message-passing machinery, or are all those selectors simply
registered to point to the same IMP function? A useless bit of
knowledge for us end-users, I know, but interesting just the same.
> Greg Parker email@hidden Runtime Wrangler
I think that should be "Wruntime Wrangler." :-)
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
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