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

Bert Freudenberg bert at freudenbergs.de
Sat Nov 22 13:12:56 UTC 2014


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

- Bert -

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4142 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20141122/b2fdbf62/smime.bin


More information about the Vm-dev mailing list