tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [patch] changing lua_Number to int64_t
On Sun, Nov 17, 2013 at 1:49 AM, Terry Moore <tmm%mcci.com@localhost> wrote:
> I believe that if you want the Lua scripts to be portable across NetBSD
> deployments, you should choose a well-known fixed width.
Indeed.
> Watch out, by the way, for compiled scripts; I have not checked Lua 5.x, but
> you may find if not careful that the compiled binary is not loadable on
> machines with different choices for LP64, ILP32, etc. This is somewhat
> independent of the choice of lua_Number mapping.
Yes, Lua bytecode isn't portable in fact. BTW, loading Lua bytecode is
not recommended by Lua team. It isn't safe.
Regards,
--
Lourival Vieira Neto
Home |
Main Index |
Thread Index |
Old Index