[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 4.4 break and return: just before elseif?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 4 Aug 2021 09:56:03 -0300
> > The documentation on https://www.lua.org/pil/4.4.html specifies that
> > "For syntactic reasons, a break or return can appear only as the last
> > statement of a block (in other words, as the last statement in your
> > chunk or just before an end, an else, or an until).".
> >
> > Is elseif an unintentional omission, or I should not return anything
> > before an elseif?
>
> It is an unintentional omission. It will be fixed, thanks.
Sorry, I thought that was in the manual. It won't be fixed, but
thanks anyway. (The PiL book, no matter what edition, is not
"the documentation".)
-- Roberto