lua-users home
lua-l archive

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


On Wed, Jun 17, 2015 at 3:23 PM, Tom N Harris <whoopdedo@whoopdedo.org> wrote:
I see you put a check to not save 'return' in readline history. Cool, thanks.
But it still doesn't handle expressions in parenthesis.

Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> (1 +
>> 1)
>>

I'm seeing it in 5.3.0 as well, but doesn't  happen if you prepend '='. Might be a clue.

    Lua 5.3.0  Copyright (C) 1994-2015 Lua.org, PUC-Rio
    > =(1+
    >> 1)
    2
 
or this should print XY

Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> ("x"..
>> "y"):upper()
>

Same. The explicit "print returned values" works.
 

The patch I had previously suggested does not have this flaw.

http://lua-users.org/lists/lua-l/2014-12/msg00336.html

Haven't looked at this in enough depth to have an opinion. Thanks for submitting it though!

--
Brigham Toskin