lua-users home
lua-l archive

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

On Fri, 2004-10-29 at 15:43 +0100, David Given wrote:

> BTW, I've noticed that this works:
> for i, j in table do
>  print(i, "=", j)
> end
> It seems to do the same thing as pairs(table). Is this intended?

This is purely backward-compatibility with Lua 4.0

Don't rely on it; use pairs() explicitly


Daniel Silverstone               
PGP mail accepted and encouraged.            Key Id: 2BC8 4016 2068 7895