lua-users home
lua-l archive

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

> 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.

Xavier Wang.