lua-users home
lua-l archive

Re: Lua 4.0 (alpha) now available

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


> Every undeclared variable is a global. > If you want locals you have to define them.
This is true, but Lua already had different ways to declare a local variable:
 function a(x) local y ... end
both `x' and `y' are locals. Now there is one more way: "for i..." All
locals are explicitly declared, but not always with the "local" keyword.
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /