Re: When init returns nil does it cause a leak
Re: When init returns nil does it cause a leak
- Subject: Re: When init returns nil does it cause a leak
- From: Gwynne Raskind <email@hidden>
- Date: Tue, 19 May 2009 14:24:43 -0400
On May 19, 2009, at 2:15 PM, Jesper Storm Bache wrote:
In the obj-c world we then have to implement classes to be able to
handle a dealloc call before the initializer has completely executed.
My 2 cents...
If we aren't implementing our classes this way to begin with, then
we're not programming our Objective-C correctly at all. As far as I'm
concerned, "dealloc should be able to handle a partially initialized
object" should be a language requirement. If any of Apple's classes
don't handle this case properly, then it's a bug that should be filed.
-- Gwynne, Daughter of the Code
"This whole world is an asylum for the incurable."
_______________________________________________
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