[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: [ANN] Lua 5.3.0 (work2) now available
- From: Ahmed Charles <acharles@...>
- Date: Mon, 7 Apr 2014 13:05:34 -0700
----------------------------------------
> Date: Mon, 7 Apr 2014 16:41:23 -0300
> From: roberto@inf.puc-rio.br
> To: lua-l@lists.lua.org
> Subject: Re: [ANN] Lua 5.3.0 (work2) now available
>
>> Just curious, how does lua deal with the undefined bitwise (shift) operations on signed integers, like shifting a 1 bit into the most significant (sign) bit of a signed int.
>>
>> Also, note: http://www.lua.org/work/doc/manual.html#3.4.2
>
> We do not use signed shifts. (In this work version one slipped in, in
> the implementation of string.packinteger, but we are going to remove
> it.)
Ah, that's good to hear.
>> The sentence, "Both right and left shifts fill with zeros the vacant bits." is slightly awkward, "Both right and left shifts fill the vacant bits with zeros."
> Thanks.