[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: block return semantic
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 26 Jun 2001 15:02:25 -0300
> 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