[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [BUG] Table constructor not equivalent to left-to-right assignment (Was: Testing for a sequence ...)
- From: Petite Abeille <petite.abeille@...>
- Date: Sat, 21 Apr 2012 15:36:49 +0200
On Apr 20, 2012, at 9:20 AM, Dirk Laurie wrote:
> I think you have discovered a bug. §3.4.8 of the manual states clearly,
> by way of an example, that a table constructor is equivalent to assignment
> of the entries from left to right.
<joke>
Patient: Doctor, doctor, it hurts when I do this.
Doctor: So don't do that.
</joke>
Trivia 1: What's the value of 'a'?
local a, a = 1, 2
print( a )
Trivia 2: What's the value of 'a'?
local a
a, a = 1, 2
print( a )