lua-users home
lua-l archive

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


* liam mail:

> So you are saying that a configure script which sets up Lua before compiling
> the library and does not check that types are large enough to pass a
> standard type and retrieve the same type is not a bug?

I think lua_pushinteger is simply not guaranteed to be exact.

(A hypothetical Lua variant with both floating point and arbitrary
precision integers could be interesting.  The trouble of doing that
with userdata is that you lose interoperability unless everybody uses
the same library for integers.)