lua-users home
lua-l archive

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


On 7/11/11, Alexander Gladysh <agladysh@gmail.com> wrote:
> 1. On failure, do not throw error, but return nil, error_message.

Can't you just use pcall(ffi.load, 'lib')? It's more consistent with
require() this way, which I think makes sense.

-Duncan