[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: Leo Razoumov <slonik.az@...>
- Date: Fri, 20 Apr 2012 09:31:12 -0400
On Fri, Apr 20, 2012 at 08:23, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> 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.
>
> An example is not part of the specification. (That is why we avoid
> examples in the manual; it is easy to extrapolate what they intend to
> exemplify. But then people complain that the manual is too dry...)
>
In that case the manual should not be using the wording "is equivalent
to" (paragraph 3.4.8) leading to the example.
Manual is very specific here, albeit incorrect.
--Leo--