lua-users home
lua-l archive

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


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.