lua-users home
lua-l archive

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

> Yes, I can see myself spending time tracking down such a thing. I'll try 
> to remember to use a semicolon when I add debug code like that:
> function test2()
>    print(1)
>    return;
>    print(2)
> end

This code does not compile: "return" must be the last statement in the block.
So you need to use this instead: "do return end". No semicolon is needed.