[Vm-dev] Signed/unsigned shifting (was: VMMaker.oscog-eem.950.mcz)

Tobias Pape Das.Linux at gmx.de
Sat Nov 22 13:16:46 UTC 2014


On 22.11.2014, at 14:12, Bert Freudenberg <bert at freudenbergs.de> wrote:

> On 21.11.2014, at 23:01, Eliot Miranda uploaded VMMaker.oscog-eem.950.mcz
>> 
>> Introduce >>> as an explicitly signed shift.
> 
> Ugh, can we pick something else, please? It's really confusing. In various languages (notably Java and JavaScript), >> is signed and >>> unsigned. I don't know any language that has both operators and the meaning reversed.
> 
> And >> still means signed or unsigned depending on context. Not nice at all.
> 
> How about ...
> 
> 	>> signed/unsigned depending on type (what we have now)
> 	>>+ force unsigned shift
> 	>>- force signed shift

This is nice!
Best
	-Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1625 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20141122/a90b1a1b/signature.pgp


More information about the Vm-dev mailing list