Re: self = [super init], nil?
Re: self = [super init], nil?
- Subject: Re: self = [super init], nil?
- From: Thomas Wetmore <email@hidden>
- Date: Mon, 10 May 2010 11:49:51 -0400
This is the initializer pattern I settled on a few years back:
- (id) init...
{
if (!(self = [super init])) return nil;
...
return self;
}
Trillions of calls later I can report upon its serviceability.
I come from an old school, formed in the mid 60's, the Savers Institute for Indentation Levels and Code, when Fortran on punch cards was de rigueur. My graduate work was done at the Bell Labs Institute of Advanced Obfuscation when C was cool. Both schools have since lost their raison d'ĂȘtre, and are sometimes ridiculed, but old alumni still cherish their dogmas.
Tom Wetmore, Chief Bottle Washer, DeadEnds Software
_______________________________________________
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