[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fun (Was: [ANN] Lua 5.3.0 (work2) now available)
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 28 Mar 2014 18:13:48 +0200
2014-03-28 17:31 GMT+02:00 Jay Carlson <nop@nop.com>:
> I never liked that readline history changed "=x" to "return x" but perhaps
> it had teaching value.
The reason is purely technical. The original string is popped off the
Lua stack and the possibly changed string is pushed back on. It's
only added to the history when the whole chunk is complete, which
may be several lines later.