lua-users home
lua-l archive

Re: Shook's patch and _ENV

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


On Sun, Nov 7, 2010 at 5:17 PM, Peter Cawley <lua@corsix.org> wrote:
> 3) The assignment of "x, y, ..." to "x, y, ..." doesn't do anything,
> as each variable exists as a local variable and so _ENV is never
> indexed.
Ah yes, that would be true - can't expect the LHS side to be treated
differently from the RHS ;)
local e = expr
local x,y = e.x,e.y
That is the form I usually use.
steve d.

AltStyle によって変換されたページ (->オリジナル) /