[Date Prev][Date Next][Thread Prev][Thread Next]
- 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
> (2) at least one extra table slot on userdata.
That would be the userdata's environment table -