lua-users home
lua-l archive

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


2015-02-09 17:33 GMT+02:00 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> It would actually be quite a useful feature to have documented.
>> It allows a module that mainly does some bindings to test whether
>> the calling program has preloaded a possibly customized version
>> of some library that it then does not need to retrieve from some
>> default source.
>
> It seems a job for 'require'...

Optional second argument selects the protocol, defaults to current
behaviour, package.loadlib becomes obsolescent but package.loadpath
comes in addition to package.path and package.cpath?