lua-users home
lua-l archive

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


> > 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