|
On 09/05/2010 22:13, Henk Boom wrote:
I've never needed to set a metatable for nil, and the manual doesn't make it clear (at least for me) whether it's possible or not to do that. If it isn't I think it may be a nice feature to have. Having the possibility to set a metatable for nil, the warning could be emitted by the metamethods; it doesn't need to be emitted by the VM. Not all environments where Lua runs have a console or some other mean to output messages to the user. Cheers, Andre |