Posted 28 December 2015 - 12:54 AM
Recently this little happy bug popped up out of nowhere. Can anyone tell me why this does not seem to work?
but then yet this does?
local p = {
x = 1,
__index = p
}
local tble = {}
setmetatable(tble,p)
print(tble.x) --> outputs nothing
but then yet this does?
local p = {
x = 1,
}
local tble = {}
setmetatable(tble,p)
p.__index = p
print(tble.x) --> outputs "1"
Edited on 27 December 2015 - 11:55 PM