• 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: self = [super init], nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: self = [super init], nil?


  • Subject: Re: self = [super init], nil?
  • From: Thomas Wetmore <email@hidden>
  • Date: Mon, 10 May 2010 16:53:04 -0400

Being nervous about applying the ! operator to a pointer is needless. It has always been well defined. From the C specification:

"The operand of the ! operator must have arithmetic type or be a pointer, and the result is 1 if the value of its operand compares equal to 0, and 0 otherwise. The type of the result is int."

The concept of Boolean isn't even mentioned here, as it is really just a fiction anyway. Know thy language.

>> By the way, I concur with Thomas Davie: treating a pointer as a Boolean makes me nervous.

Tom Wetmore

_______________________________________________

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

References: 
 >self = [super init], nil? (From: "Patrick M. Rutkowski" <email@hidden>)
 >Re: self = [super init], nil? (From: jeremy <email@hidden>)
 >Re: self = [super init], nil? (From: Scott Anguish <email@hidden>)
 >Re: self = [super init], nil? (From: Henry McGilton <email@hidden>)
 >Re: self = [super init], nil? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: self = [super init], nil?
  • Next by Date: Finder refresh issue in Mac OS 10.5
  • Previous by thread: Re: self = [super init], nil?
  • Next by thread: Re: self = [super init], nil?
  • Index(es):
    • Date
    • Thread