lua-users home
lua-l archive

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



It's always worked.  At least with Lua 5.

But this is exactly why I did the Number patch, to avoid such hacks.... ! ;D


Enrico Colombini kirjoitti 16.10.2007 kello 13:36:

Daniel Collins wrote:
Last year when I was using Lua on an ARM mobile phone (no FPU) I had
much the same decision to make. In the end I ended up defining
LUA_NUMBER as int and making a user data module for fixed point
operations precisely because I was afraid of how much work would be
involved in making LUA_NUMBER a fixed point type.

Does this work straight out of the box? I really like light solutions, especially when operating on negative time :-)

  Enrico