lua-users home
lua-l archive

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


> The typical Lua convention is to return nil, <error> on error, and
> whatever the result is on non-error. It's not a hard-and-fast rule,
> but some functions depend on it (like assert()).

assert depends on true/false, not nil.