• 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: Unnecessary Boolean Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unnecessary Boolean Warning


  • Subject: Re: Unnecessary Boolean Warning
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 03 Aug 2011 01:43:19 -0500

On Aug 2, 2011, at 7:57 PM, Dale Miller wrote:

> It is disconcerting that if A = 0x'0110' and B = '1001' then A & B returns true but A && B returns 0, so "if (A && B)' is executed, the 'true' leg is not taken

Don’t you have that backwards? Assuming B was supposed to be hex, i.e. 0x1001, then A & B would be 0, whereas A && B would be true.

Charles_______________________________________________

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

  • Follow-Ups:
    • Re: Unnecessary Boolean Warning
      • From: Dale Miller <email@hidden>
References: 
 >Unnecessary Boolean Warning (From: Dale Miller <email@hidden>)

  • Prev by Date: Re: quick look question
  • Next by Date: Deprecated methods usage
  • Previous by thread: Re: Unnecessary Boolean Warning
  • Next by thread: Re: Unnecessary Boolean Warning
  • Index(es):
    • Date
    • Thread