[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Checking whether a shared library has been loaded
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 9 Feb 2015 20:55:08 +0200
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?