[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (alpha) now available
- From: Xavier Wang <weasley.wx@...>
- Date: Fri, 1 Aug 2014 03:34:27 +0800
> All feedback welcome. Thanks.
> --lhf
Very happy to see alpha version is released :)
Now we can use Lua as a calculator, So how about move a little forward?
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
then you can use lt for farther process? just like this:
> function(...) print(">> ", ...)
lt = function: .....
> lt "Hello"
lt = Hello
notice that a function call can also a expression, so it assign it to
"It", also.
--
regards,
Xavier Wang.