lua-users home
lua-l archive

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


On Mon, Mar 16, 2015 at 2:42 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> Perhaps you may want to take a look at this patch, which removes
>> floating-point numbers completely from 5.3.
>
> Can't it be done simply (or at least less intrusively) by defining Lua
> numbers to be ints?

By simply redefining Lua numbers, I think not. Less intrusively,
definitely yes. I used this approach for three reasons: guarantee just
one execution flow for numbers, reduce the binary size and as a
exercise =).
-- 
Lourival Vieira Neto