lua-users home
lua-l archive

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


On Fri, Dec 18, 2015 at 3:19 PM, Rena <hyperhacker@gmail.com> wrote:

The exception is when it's ambiguous:
x = f
(a or b):c()
That _expression_ could be interpreted as two statements or one (remove the line break and see). In that case Lua is kind enough to make an exception to the "ignore whitespace" rule and raise an error

Really?
I've always thought that Lua treats this chunk as absolutely correct way to write the following code:
x = (f(a or b)):c()