lua-users home
lua-l archive

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


> I see that in Lua 5.3, there are facilities
> like `package.searchpath` and an extension to `require` (relative to 5.1)
> that can pass an extra parameter.  Can anyone suggest a way to
> replicate this functionality in 5.1?

I haven't tried it, but from a quick look at the 5.1 loadlib.c, it
seems that it's just a matter of backporting the 5.3 functionality to
5.1.