Quote:
Originally Posted by IXix
This is great! While there's all this JS love in the air, how about that two's compliment ~ operator? A rebuild of ReaJS to bring it up to speed would be nice too .
|
To 32 bits, I guess? Or would it make more sense to make it be xor and require you to do (var~$xffffffff)?
Edit: this makes the most sense, I think. Perhaps a syntax for "n bits of 1" would be nice, like $~32.
Edit again: making ~ and ~= xor, and $~32 if you want to do 32 bits of 1s... so for example:
Code:
y = x ~ $~32;
y ~= $~32;
Almost ready for a new build, just need to implement the new stack functions on PPC, bleh..