[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 4.0 (alpha) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 04 May 2000 10:07:11 -0300
> 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