|
On 14/06/2014 19:59, Andrew Starks
wrote:
for x,y in next,setmetatable({},{__index={1,2,3},__pairs=function(t) return error,t end,__ipairs=function(t) return error,t end}) do print(x,y) end My point is that next is basically rawget without rawget |