lua-users home
lua-l archive

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


On Thu, Jul 31, 2014 at 9:34 PM, Xavier Wang <weasley.wx@gmail.com> wrote:
> I mean, if you input a expression instead of a statement, lua can
> print it directly, so why not assign it to a global variable
> (defaultly "It") and print as this:
>
>> 123
> lt = 123

It's a cute idea, but I've usually seen the implicit variable having
the name '_', which is unlikely to collide with any explicit
variables.  An easy patch, I think.