lua-users home
lua-l archive

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


2014-04-16 15:40 GMT+02:00 Aapo Talvensaari <aapo.talvensaari@gmail.com>:
> you can do getmetatable("") but you cannot do setmetatable("", {})

You need debug.setmetatable for everything except tables.
You only need debug.getmetatable when the metatable has
been locked by setting its __metatable field.