[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 9 Jul 2013 14:01:25 -0300
> I suppose such data manipulation often requires treating ints as
> unsigned quantities, therefore a bit64 library would be necessary
> (in a previous post Roberto said its realization is probable).
We are considering adding bitwise operations to Lua. After all, the main
reason Lua did not have them was that they were awkward as primitive
operations over floating-point numbers. With integer numbers, this
problem is gone.
> If one would ensure portability of Lua code a
> mechanism should be provided for a Lua script to query the
> interpreter about the current int width, [...]
try this:
> print(debug.numbits'i', debug.numbits'f')
-- Roberto
- References:
- Re: [ANN] Lua 5.3.0 (work1) now available, Miles Bader
- Re: [ANN] Lua 5.3.0 (work1) now available, Luiz Henrique de Figueiredo
- Re: [ANN] Lua 5.3.0 (work1) now available, Enrico Colombini
- Re: [ANN] Lua 5.3.0 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.3.0 (work1) now available, Lorenzo Donati
- Re: [ANN] Lua 5.3.0 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.3.0 (work1) now available, Lorenzo Donati
- Re: [ANN] Lua 5.3.0 (work1) now available, Joseph Manning
- Re: [ANN] Lua 5.3.0 (work1) now available, Todd Coram
- Re: [ANN] Lua 5.3.0 (work1) now available, Lorenzo Donati