[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: wish for 5.2
- From: Peter Cawley <lua@...>
- Date: Thu, 12 Feb 2009 20:18:02 +0000
> (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