lua-users home
lua-l archive

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


In a previous message, I wrote that the local variables in *all* enclosing
functions can be used as upvalues. This is, of course, false! Only the
locals in the immediately enclosing function can be used as upvalues.
The reason is that locals that are located higher up may not exist when the
function is created. I'm sorry for the noise.
--lhf