lua-users home
lua-l archive

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

On Feb 18, 2008, at 9:37 PM, Yuri Takhteyev wrote:

Speaking of which:  is there a better way to check whether a package
is available other than using require() and catching errors with


local ok, zlib = pcall( require, 'zlib' )

What's wrong with it?