lua-users home
lua-l archive

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

Alex Queiroz wrote:

On 2/24/06, Pavol Severa <> 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.


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?



The absolute law of the universe: everything depends