lua-users home
lua-l archive

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


2011/6/14 Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>> The changes at http://www.lua.org/work/doc/ state that "break
>> statement may appear in the middle of a block" (but the manual itself
>> doesn't).
>
> Does it not?
>

It doesn't appear in section 8.1. I haven't checked everywhere else.

>> And section 3.3.1 says: "Explicit blocks are also sometimes used to
>> add a return or break statement in the middle of another block".
>>
>> Maybe this should be changed to
>>
>> "Explicit blocks are also sometimes used to add a return statement in
>> the middle of another block".
>
> My copy already reads like this.

I noticed this while reading http://www.lua.org/work/doc/manual.html.
Maybe this one is not up-to-date?


-- 
Benoit.