lua-users home
lua-l archive

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


Thank you very much!!!
That is the answer!!!
Jerome Vuarand, I am sorry, my english is bad.T_T

2011/8/18 Jerome Vuarand <jerome.vuarand@gmail.com>:
> 2011/8/14 l.jay Yuan <pass86@gmail.com>:
>> How to require mod in archive package such as mpq etc?
>> ll_require ?
>
> You can add a searcher (see package.loaders in the reference manual)
> that will look in your archives for the modules. There are searchers
> examples on the wiki. For example in [1] replace io.open and file:read
> by whatever API call you have to read the archive content. This is
> implemented in Lua, but you can do the same in C.
>
> [1] http://lua-users.org/wiki/LuaModulesLoader
>
>