lua-users home
lua-l archive

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


On 10/05/2010 07:17, Luiz Henrique de Figueiredo 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.
    
	"Every value in Lua can have a metatable."
	http://www.lua.org/manual/5.1/manual.html#2.8


  
Yeah, but another statement made be not so sure:

"Values of all other types share one single metatable per type; that is, there is one single metatable for all numbers, one for all strings, etc."

etc. is a bad word...