Accessing Type Metatables Lua -
its getmetatable can access metatables of several types:
getmetatable("") getmetatable({}) getmetatable(newproxy(true))
however appears though cannot metatable of other types (functions aside). there appears no way access metatable of numbers, booleans, or nil.
i wondering if 1 able access metatable of entire table type. able this:
({}) + ({})
numbers, booleans , nil have no metatable default (hence getmetatable returning nil
). can give them 1 debug.setmetatable
though.
there no common table metatable. (and same userdata (at least of heavy variety))
Comments
Post a Comment