1 local co_time_tbl = {}
2 setmetatable(co_time_tbl, { __len = function(o)
3 local count = 0
4 for k, v in pairs(o) do
5 count = count + 1
6 end
7 return count
8 end
9……
void lua_settable (lua_State *L, int index);
Does the equivalent to t = v, where t is the value at the given index, v is the value at the top of the stack, and k is the value just below the top ...……