[Date Prev][Date Next][Thread Prev][Thread Next]
- 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@example.com>:
> 2011/8/14 l.jay Yuan <firstname.lastname@example.org>:
>> 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  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.
>  http://lua-users.org/wiki/LuaModulesLoader