lua-users home
lua-l archive

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


It is clear why the return statement must be the last statement of
block, othewise, an assignment or function call could follow the return
statement, and one would not know where one ends and the other begins.

I am unable to see why a break statement is required to be the last
statement of a block for syntactic reasons.  I can find no syntactic
ambiguity as a result of allowing break in the middle of a block.
Please tell me the reason break must appear at the end of a block.

John