Мне было интересно, если вы можете обнаружить nilling объекта через мета-таблицы?
foo = {}
foo_mt = {
__newindex = function (t, k, v)
print (k, v)
rawset (t, k, v)
end
}
setmetatable (foo, foo_mt)
foo ['oof'] = 3
outputs: oof 3
foo ['oof'] = nil
__newindex will not be called, so is there another meltable method ?