bit shifting
Wim Boot
wimb at bart.nl
Thu Apr 23 16:55:02 UTC 1998
Dan Ingalls wrote:
> bitClear: aMask
> "Return a number equal to the receiver, except
> with all bits cleared that are set in mask."
> ^ (self bitOr: aMask) - aMask
>which seems to do a fine job of clearing bit fields regardless of number size.
Can we have #bitNot (or #bitInvert) as well? Please...
Wim Boot
More information about the Squeak-dev
mailing list
|