lua-users home
lua-l archive

Re: is there an "improved interactive mode"?

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


Goran Zoricic wrote:
Alex Queiroz wrote:
Hallo,
On 2/24/06, Pavol Severa <pavol.severa@gmail.com> wrote:
I imagine there are some formal problems:
1. a function call is a valid statement - still it would be nice if
its results were printed (except when it's nil)
 Try putting a '=' before the expression or function call.
Hello!
A followup question: if i write '= 2+3', the lua console prints '6',
as it should. However, lua doesn't support expression cascading
('a=b=c;' is not valid), so if i write something like '=a=2+3;', i
get an error. Is there a way to make it print '6' even in this case?
Cheers,
Goran.
LOL!
'= 2+3' actually prints '5', most of the time. :))
Goran.
--
The absolute law of the universe: everything depends

AltStyle によって変換されたページ (->オリジナル) /