• 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: Gordon Apple <email@hidden>
  • Date: Sun, 31 Jul 2011 15:36:15 -0500
  • Thread-topic: Unnecessary Boolean Warning

Sorry, that should have been posted to Xcode.

On 7/31/11 3:13 PM, "Gordon Apple" <email@hidden> wrote:

> The following expression generates a warning message (³&&² within ³||²) and
> says to include the ³anded² expression in parens.  Anybody who understands
> basic boolean operator precedence knows this is unnecessary.  Bug report?
>
>     BOOL isInUse = [super mediaIsInUse];
>     isInUse = isInUse || [self videoIsOn] && ([[self capMgr] isRecording]
>                                               || [[self camVC] movieIsPlaying]
>                                               || [[self camVC]
> movieIsPaused]);
>


_______________________________________________

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: 
 >Unnecessary Boolean Warning (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Multithreaded Coredata save in Lion
  • Next by Date: Re: Unnecessary Boolean Warning
  • Previous by thread: Unnecessary Boolean Warning
  • Next by thread: Re: Unnecessary Boolean Warning
  • Index(es):
    • Date
    • Thread