Bit Manipulation Question

R. A. Harmon harmonra at webname.com
Tue Dec 8 23:04:01 UTC 1998


I noticed to following results while testing Squeak bit manipulation.  I
think the  result of evaluating the second snippet of code is in error.  If
it isn't, I would appreciate it if anyone could straighten me out.

(10       "2r1010"
    bitOr: 2r1000) radix: 2.
"->       '2r1010'"   OK

(-10       "-2r1010"
    bitOr:   2r1000) radix: 2.
"->          '-2r10'"   Error?

(-10       "-2r1010"
    bitOr:   2r1000) radix: 2.
"->        '-2r1010'"   OK
--
Richard A. Harmon          "The only good zombie is a dead zombie"
harmonra at webname.com           E. G. McCarthy





More information about the Squeak-dev mailing list