[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Shook's patch and _ENV
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 7 Nov 2010 17:37:53 +0200
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.