lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


This particular use case can be handled in a straightforward way
by a method.

local t = obj:retrieve(x,y,z)

I think you mean

local t = obj:retrieve("x","y","z")

But how can I do this :

for k,v in pairs(obj.x) do
   ...
end