-- Access inside table over __call -- This is a very nice access since it only can be called over () function newT() -- create access to a table local _t = {} -- metatable local mt = {} mt.__call = function() -- hold access to the table over function call return _t end return setmetatable( {},mt ) end -- Access inside table over commonly used variable self[self], inside __index function newT2() local t = {} local mt = {} mt.__index = { [t] = {} } return setmetatable( t,mt ) end -- Access inside table over nomal variable -- disadvantage is that setting a key to _t will override -- the access to the hidden table function newT3() local mt = {} mt.__index = { _t = {} } return setmetatable( {},mt ) end -- Access over nomal variable inside table function newT4() local t = {} t._t = {} return t end -- CHILLCODEā„¢