[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: globals (_locals)
- From: "Russell Y. Webb" <rw20@...>
- Date: Thu, 07 Jun 2001 09:10:45 -0700
> The other problem with this is that it's quite strange for the word "global"
> by itself to mean "don't use globals by default".
There are always other words, like "import".
function f()
import x
local y
a = 4 -- illegal
end
Of course that doesn't match "local" quite so nicely and has other
connotations such as "import *" from the enclosing block.
Or maybe
function f()
global {}
local y
a = 4 -- illegal
end
would be clear?
Russ