lua-users home
lua-l archive

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



Lava_Monkey wrote:
Does Lua have object scope, for files ,functions, statements ?
can u have a variable that goes out of scope and releases itself, at the end of a for loop or a
file or function..
If so how ?

Yes, this is what local variables are for.

- Peter Shook