[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: parsing bug? (return statement)
- From: Jens Alfke <jens@...>
- Date: Mon, 26 Dec 2005 09:07:39 -0800
On 26 Dec '05, at 3:30 AM, redpixel wrote:
if it exists another statements after "return", the parser raise
error.
That's a documented feature of the syntax — check the reference
manual and/or the Lua book.
(In any case, a statement after an unconditional 'return' would be
unreachable, so there's no valid reason to have one.)
--Jens