lua-users home
lua-l archive

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


2016-08-30 0:30 GMT+08:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> The very first thing require() does is to look up if the required module
>> can be found in package.loaded - so if you store your module there
>> manually, you shouldn't have any problems.
>
> To help you in that task, use luaL_requiref:
>         https://www.lua.org/manual/5.3/manual.html#luaL_requiref
>

I have made a proposal before, to load a module static linked into
applications automatically[1].

[1]: http://lua-users.org/lists/lua-l/2016-03/msg00251.html

-- 
regards,
Xavier Wang.