glow icon indicating copy to clipboard operation
glow copied to clipboard

Ambiguities/possible error in reference manual re: shift operators

Open kwannoel opened this issue 3 years ago • 0 comments

In GitLab by @isd on May 4, 2021, 04:03

I was skmming through the reference docs, and noticed a couple things that seem off re: the bitwise shift operators:

https://glow-lang.org/docs/Glow_Reference_Manual.html#%28def._%28%28lib.glow%2Fmain..rkt%29.~3c~3c%29%29

  1. left vs. right seems backwards to the normal meaning of those symbols. I haven't checked whether the docs are simply incorrect or if the implementation really deviates in this way, but I would guess the former.
  2. The right shift should specify whether it is an arithmetic or logical shift.

kwannoel avatar Sep 22 '21 05:09 kwannoel