At 9:50 PM -0400 4/2/06, Mike Woodworth wrote:

For this I see no equivalent in Rb for the ~ (tilda) operator which produces
an integer with all of the bits set to 1, except the bit that originally was
set to 1, that bit becomes a 0.

bitwise.BitXor(bit_flag , &b11111111)

Er Bitwise.OnesComplement(bit_flag) -- which one you should use depends on how many bits you're prentending the number has. OnesComplement flips all 32 bits; Mike's version above flips just the lower 8.

Best,
- Joe

--

Joe Strout  --  [EMAIL PROTECTED]
Available for custom REALbasic programming and training.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to