View Single Post
Old 04-09-2012, 09:17 AM   #23
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
Originally Posted by IXix View Post
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..

Last edited by Justin; 04-09-2012 at 09:55 AM.
Justin is offline   Reply With Quote