lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2013-07-09 1:01 PM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
>
> > 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
>

Is it still planned to split or rename the debug library to separate "debugging tools" from "things that deal with internals, but are OK to use in non-debug code as long as you're careful"? I seem to recall hearing that was being considered a while back.