tech-kern archive

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

Re: [patch] put Lua standard libraries into the kernel



On Thu, Nov 28, 2013 at 6:13 AM, Marc Balmer <marc%msys.ch@localhost> wrote:
> Am 27.11.13 22:23, schrieb Martin Husemann:
>
>> Can't it be a per-state option, passed by luactl when creating the state?
>
> That is actually an excellent idea.  So what should be the default,
> stdlibs enabled or not enabled?

IMO, it should be disabled by default. Thus, it would mimic the Lua
library behavior. Where Lua states are created empty and if you want
to use stdlibs, you must explicitly load it (e.g., calling
luaL_openlibs()).

Regards,
-- 
Lourival Vieira Neto


Home | Main Index | Thread Index | Old Index