lua-users home
lua-l archive

Re: Location of a package

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


Speaking of which: is there a better way to check whether a package
is available other than using require() and catching errors with
pcall()?
 - yuri
On Mon, Feb 18, 2008 at 12:19 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> Lua 5.2 will include a package.searchpath function. It is similar
> to this package.findfile, but it returns only the file name (not the
> file handler).
>
> -- Roberto
>

AltStyle によって変換されたページ (->オリジナル) /