[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: loading shared C library in Lua 5.1(beta)
- From: David Burgess <dburgess@...>
- Date: Sat, 26 Nov 2005 02:37:25 +1100
On 11/26/05, Tomas <tomas@ccpa.puc-rio.br> wrote:
> > 1) Do I have to use require instead of loadlib ?
> It is recommended.
>
I must have missed this.
As far I can tell package.loadlib is nigh on identical to 5.0.2
loadlib other than it
will now also unload (and incorporates some minor refinements).
For porting code , the addition of
> local loadlib = package.loadlib
should do this with a minimum of effort.
> 2) If it is so, what further requirements do I have to consider?
If just porting the code, nothing. It should just work.
DB