lua-users home
lua-l archive

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


Fernando Jefferson-2 wrote
> In Lua 5.3 interpreter the expression "1 + 1 
> <enter>
> " works perfectly.

my question is not about REPL, where each line has a 'return' prepended if
interpretation is failed.

Actually i just realized that allowing such a C-like behavior would break
the present Lua interactive interpreter as it works exactly because of `1+2`
statement causes syntax error.


nobody wrote
> And then what's the meaning of
>    foo = a
>    "b" .. c
> ?
> 
> Is it still `foo = a( "b" ) .. c`?  Is it `foo = a ; "b" .. c`?
> Something else?

exactly the same with a parentheses:
a = b+c
(foo())

a=b+c(foo())





--
Sent from: http://lua.2524044.n2.nabble.com/Lua-l-f2524044.html