A anthony New member Jul 1, 2011 #1 a={b=''} a.b = "Hello World" setmetatable(a,{__newindex=function(a, b, v) if a.b == "Hello World" then print(a.b) end end }) This is in Lua BTW. Using Metamethods. I honestly don't know exactly what I'm doing. xD
a={b=''} a.b = "Hello World" setmetatable(a,{__newindex=function(a, b, v) if a.b == "Hello World" then print(a.b) end end }) This is in Lua BTW. Using Metamethods. I honestly don't know exactly what I'm doing. xD