lua-users home
lua-l archive

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


On Wed, 15 Sep 2010, Fabien wrote:
> On Wed, Sep 15, 2010 at 1:19 PM, Tony Finch <dot@dotat.at> wrote:
>
> > [In lua 5.2] A function call statement now maximally munches all
> > trailing argument-like clauses - bracketed expressions, table
> > constructors, and strings - and is terminated by a keyword, a variable
> > name, or a semicolon. Newlines are now treated the same as other white
> > space.
>
> I didn't realize this. Are you sure it is a voluntary change? It looks like
> something that will sometimes bite you in hard-to-understand ways, not
> unlike the "a and b or c" idiom when b can be false.

It has been mentioned on the list before.
http://lua-users.org/lists/lua-l/2010-05/msg00355.html

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.