lua-users home
lua-l archive

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


Hi,

The reference manual entry for lua_setmetatable says "Pops a table from the stack and sets it as the new metatable for the value at the given index." (at least 5.3 and 5.4)

Shouldn't it also mention that you can pass 'nil' to remove an existing metatable? Without this the wording would indicate it's not valid to pass 'nil'.

Best Regards,

Petri Häkkinen
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org