lua-users home
lua-l archive

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


On Wed, Dec 29, 2010 at 16:39, Duncan Cross <duncan.cross@gmail.com> wrote:

> You are doing it wrong by trying to rely on that. As the manual
> states, "#t can be any of the indices" - *any* of them, it is
> deliberately undefined which. You should treat it as if it is random,
> even though it may seem to be consistent.
>
> In fact, it is not even consistent in Lua 5.1. For example, these two

OK, this confirms to me that a piece of my code was working on Lua 5.1
by pure coincidence :-)
I'll handle it differently instead of just passing the user-provided
table to unpack (see my other reply to Luiz).

Thanks!

-- 
Daniele Alessandri
http://clorophilla.net/
http://twitter.com/JoL1hAHN