lua-users home
lua-l archive

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


> (1) extension of the luaL-check.. and luaL_opt.. repertoire with functions
> for the retrieval of booleans.
The behaviour of such a function is very dependant upon the user's
requirements. Usually none,nil and nil always count as false, and
everything else is true, and hence lua_toboolean() does the job
without the need for an opt or check function. Having none or nil have
some other behaviour would be extremely counter-intuitive in most
cases.

> (2) at least one extra table slot on userdata.
That would be the userdata's environment table -
http://www.lua.org/manual/5.1/manual.html#lua_setfenv