lua-users home
lua-l archive

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


>I'm sorry, but what's going on here is more of a 
>quirk of the Lua interpreter than a problem in the language. 
>When you use the lua interpreter as an interactive tool, 
>every line is compiled separately as a chunk, unless the interpreter
>detects that the line is not finished (such as in function definitions,
>loops, etc)

If you want to write complex code interactively, starts with "do". Then the
code won't be executed until you enter "end".
--lhf