• 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
K&R Operator precedence (was: Re: ObjC method syntax)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

K&R Operator precedence (was: Re: ObjC method syntax)


  • Subject: K&R Operator precedence (was: Re: ObjC method syntax)
  • From: Allan Odgaard <email@hidden>
  • Date: Thu, 26 Feb 2004 08:53:28 +0100

On 26. Feb 2004, at 1:30, Ondra Cada wrote:

Thanks K&R, we got decent operator priorities in ObjC ;)))

You mean like:

enum { FLG_Slow = 1, FLG_Fast = 2 };
int flags = FLG_Fast;

if(flags & FLG_Fast == FLG_Fast)
printf("Be fast!\n");
else printf("Be slow!\n");
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: K&R Operator precedence (was: Re: ObjC method syntax)
      • From: Ondra Cada <email@hidden>
References: 
 >Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs) (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: NSStepper with a time field
  • Next by Date: Re: Carbon-in-Cocoa Edit Menu Commands
  • Previous by thread: Re: ObjC method syntax (was: Re: cocoa-dev digest, Vol 2 #3738 - 11 msgs)
  • Next by thread: Re: K&R Operator precedence (was: Re: ObjC method syntax)
  • Index(es):
    • Date
    • Thread