lua-users home
lua-l archive

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


> Seems like you could easily modify the stand-alone interpreter to do 
> this by checking the return value and printing it if it's non-nil. Lua
> is the language, not the stand-alone interpreter.

I agree. Perhaps we can add a new command line switch, say -I, that prefaces
every line with a "return", except those beginning with a keyword.

Changing the syntax of Lua to allow this strange sounds to me, plus I doubt it
will be easy to do; ambiguities are probable.

>>   mozart:~/Project/Lua/lua31/bin> lua
>>   Lua 3.1 (alpha)  Copyright (C) 1994-1998 TeCGraf

3.1 alpha?!
--lhf