• 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: Thomas Davie <email@hidden>
  • Date: Wed, 03 Aug 2011 15:40:52 +0100

On 3 Aug 2011, at 15:15, Scott Ribe wrote:

> On Aug 3, 2011, at 7:54 AM, Thomas Davie wrote:
>
>> Not really – both C ands are the same and… they're just operating on different representations of booleans.
>
> No, they're not the same at all. One is a bitwise operation on binary ints.

Yes – it performs the logical and operation on booleans represented by bits (lots of booleans at once in this instance).  The other performs the same logical and operation on booleans represented by entire ints.  Same op, different representations.

Bob

_______________________________________________

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: Jean-Daniel Dupas <email@hidden>
References: 
 >Unnecessary Boolean Warning (From: Dale Miller <email@hidden>)
 >Re: Unnecessary Boolean Warning (From: Charles Srstka <email@hidden>)
 >Re: Unnecessary Boolean Warning (From: Dale Miller <email@hidden>)
 >Re: Unnecessary Boolean Warning (From: Scott Ribe <email@hidden>)
 >Re: Unnecessary Boolean Warning (From: Thomas Davie <email@hidden>)
 >Re: Unnecessary Boolean Warning (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Unnecessary Boolean Warning
  • Next by Date: Re: Unnecessary Boolean Warning
  • Previous by thread: Re: Unnecessary Boolean Warning
  • Next by thread: Re: Unnecessary Boolean Warning
  • Index(es):
    • Date
    • Thread