On Jul 31, 2011, at 1:13 PM, Gordon Apple 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]);

I agree that it is unnecessary, but a lot of the warnings that are now provided 
are unnecessary but promote better and less ambiguous coding practices.


-- 
Glenn L. Austin, Computer Wizard and Race Car Driver         <><
<http://www.austin-soft.com>



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to