Re: How useful are bit operators?
Re: How useful are bit operators?
- Subject: Re: How useful are bit operators?
- From: "Jim Thomason" <email@hidden>
- Date: Tue, 24 Jul 2007 15:27:33 -0500
How useful are those operations in Cocoa programming?
They're extremely useful when you're doing bitwise operations. Try
doing a bitshift when all you've got is
+dateWithNaturalLanguageString:
Could you give me an example where you actually was forced to use a
bit operation.
"force" may be a bit strong of a term, but I use 'em in the places I
always would've used 'em before. For example, in one of my apps I use
an integer to store a set of data. each bit is in set/not in set. It
was the easiest way to extract my data from the int, and the int was
the simplest most compact storage method. It's all wrapped up inside a
method so I never worry about the details anyway.
-Jim....
_______________________________________________
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