Re: checking if an object's instance exists.
Re: checking if an object's instance exists.
- Subject: Re: checking if an object's instance exists.
- From: Kevin Ballard <email@hidden>
- Date: Sat, 5 Feb 2005 17:31:20 -0500
I don't code in C++, and never have. So it's not a C++ habit. And it's
not a waste of work and code - it takes mere seconds to throw the ivars
into the init, and it adds clarity to the code, because I know I have
all my ivars initialized to the appropriate default values.
On Feb 5, 2005, at 5:12 PM, daniel wrote:
I think it's a C++ habit that really belong in Objective C code.
Sure, it does no harm, but it's a waste of work and code. If clarity
is all you're after, you might as well put a comment in your init
routine:
// Reminder: the following ivars, like all ivars in Objective C, are
initialized to zero automatically:
//
// ...
--
Kevin Ballard
email@hidden
http://www.tildesoft.com
http://kevin.sb.org
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden