lua-users home
lua-l archive

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


Tomas wrote:
On Sun, 23 Apr 2006, Shmuel Zeigerman wrote:

return doesn't have to be the last statement but it has to be "top-level" that is, not inside some function.

    `return' has to be the last statement.  For example:

f=assert(loadstring"return 1; print(2)")
[snip]

Tom,
I meant "return doesn't have to be the last statement in the file". It's my fault I didn't write that explicitely (I thought it was clear in the context).

--
Shmuel