[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 4.0 (alpha) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 05 May 2000 10:49:21 -0300
>Is it still a requirement that the return statement is the last line in a
>function?
Just a small detail: It does not need to be the last line in a function,
but in a block. As lhf pointed out, both
do return end
and
if ... then return end
have the return as the last line in the block, and then are correct (and
can be written anywhere).
-- Roberto