lua-users home
lua-l archive

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


On Tue, Apr 3, 2018, 8:15 PM Jean-Luc Jumpertz <jean-luc@celedev.eu> wrote:
What you mean is « iterate in every entry of myCollection and do some stuff », which would probably better be written as:

for key, value in myCollection do
  — some stuff
end

What are the differences between your approach and "Self-iterating Objects" patch from http://lua-users.org/wiki/LuaPowerPatches ?