You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks that there is difference between R3 and Red.
In Red:
> ? "shift"
<< op! Shift bits to the left.
>> op! Shift bits to the right.
>>> op! Shift bits to the right (unsigned).
shift native! Perform a bit shift operation. Right shift (decreasing) by default.
shift-left routine! Shift bits to the left.
shift-logical routine! Shift bits to the right (unsigned).
shift-right routine! Shift bits to the right.
While in Rebol:
>> ? "shift"
Found these related matches:
shift native! Shifts an integer left or right by a number of bits.
shift-left native! Shift bits to the left (unsigned).
shift-right native! Shift bits to the right (unsigned).
<< op! Shift bits to the left (unsigned).
>> op! Shift bits to the right (unsigned).
So in Rebol >> is now equal to Red's >>>.
But you should not expect same result in Rebol like in Red, because Red has 32bit integers, while Rebol3 has them 64bit!
Could it be possible to add >>> operator (unsigned right-bit shift) ?
The text was updated successfully, but these errors were encountered: