[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bitwise XOR in Lua?
- From: Reuben Thomas <rrt@...>
- Date: Tue, 10 Sep 2002 17:08:45 +0100 (BST)
> I.e.
>
> band(1,1) != bor(1,0) -- gives 1 and -9007199254740991
>
> or
>
> bnot(0) != bxor(bnot(0),0) -- gives -1 and 0
I had tested this, but forgotten to turn off my bitlib functions. Sigh.
I've reverted to the longer version once more in stdlib.
--
http://www.mupsych.org/~rrt/ | Astrophysics: it's not exactly rocket science