• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: checking if an object's instance exists.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: checking if an object's instance exists.
      • From: Andy Armstrong <email@hidden>
References: 
 >checking if an object's instance exists. (From: Aaron Boothello <email@hidden>)
 >Re: checking if an object's instance exists. (From: Kevin Ballard <email@hidden>)
 >Re: checking if an object's instance exists. (From: Sherm Pendley <email@hidden>)
 >Re: checking if an object's instance exists. (From: Kevin Ballard <email@hidden>)
 >Re: checking if an object's instance exists. (From: daniel <email@hidden>)
 >Re: checking if an object's instance exists. (From: Kevin Ballard <email@hidden>)
 >Re: checking if an object's instance exists. (From: daniel <email@hidden>)

  • Prev by Date: Re: importing tab-delimited table (newbie)
  • Next by Date: Re: checking if an object's instance exists.
  • Previous by thread: Re: checking if an object's instance exists.
  • Next by thread: Re: checking if an object's instance exists.
  • Index(es):
    • Date
    • Thread