lua-users home
lua-l archive

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

> OK. Reduction is not symmetric :). So, for checking that I have
> it right, am I correct in saying that a local variable's scope 
> consists of the statements or blocks that follow its declaration 
> that also lie within the smallest block that contains its
> declaration? 

That is not too different from the manual:

  The scope of a local variable begins at the first statement after
  its declaration and lasts until the last non-void statement
  of the innermost block that includes the declaration.

-- Roberto