3 ms·
Add a metatable to the tables where undefined access must not be allowed. a = setmetatable({...}, {__index = function(i) error "undefined" end}) is all you ne
by justincormack 13y ago
Add a metatable to the tables where undefined access must not be allowed.
a = setmetatable({...}, {__index = function(i) error "undefined" end})
is all you need.