lua-users home
lua-l archive

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


2017-04-30 20:33 GMT+02:00 Egor Skriptunoff <egor.skriptunoff@gmail.com>:
> On Sun, Apr 30, 2017 at 7:04 PM, Soni L. <fakedme@gmail.com> wrote:
>>
>> $ lua
>> Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
>> > =1
>> 1
>> >  =1
>> stdin:1: unexpected symbol near '='
>>
>
> Yes, it looks like a bug.

"Please stop calling "bug" something that does not behave as you wanted
or imagined."  — Roberto Ierusalimschy [1]

"After reading a line, Lua first try to interpret the line as an expression.
If it succeeds, it prints its value. Otherwise, it interprets the line as
a statement. If you write an incomplete statement, the interpreter waits
for its completion by issuing a different prompt." — Lua User's Manual

[1] http://lua-users.org/lists/lua-l/2013-04/msg00825.html