[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to require mod in archive package such as mpq etc?
- From: "l.jay Yuan" <pass86@...>
- Date: Thu, 18 Aug 2011 23:20:47 +0800
Thank you very much!!!
That is the answer!!!
Jerome Vuarand, I am sorry, my english is bad.T_T
2011/8/18 Jerome Vuarand <[email protected]>:
> 2011/8/14 l.jay Yuan <[email protected]>:
>> 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
>
>