local tbl = {
"some table here"
}
local proxy( tbl )
return setmetatable( {}, {
__index = functon(t, k ,v)
return tbl[k]
end
} )
end
local passThisAroundAsReadOnly = proxy(tbl)
This way you dont have to bother about rawget or have mess with ID's. Of course this snippet is very primitive, but you should know how to do it properly, this is just the concept
Edited by Engineer, 28 September 2014 - 10:55 AM.












