lua-users home
lua-l archive

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


2012/12/11 Jay Carlson <nop@nop.com>:

>    -- Perhaps it is not defined which order these occur in?
>    local addend1 = a()
>    local addend2 = b()
>    local addend3 = c()

As soon as the second "local" is encountered, the first statement
is known to be complete. So order is determined.

But

local addend1, addend2, addend3 = a(), b(), c()

is only complete when the next character after the `c()` can't
be lexed to continue the statement. So order remains undetermined.