K&R Operator precedence (was: Re: ObjC method syntax)
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.