[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: globals (_locals)
- From: "Russell Y. Webb" <rw20@...>
- Date: Wed, 06 Jun 2001 14:17:54 -0700
> On the other hand, if the chunk starts with "global", then everything
> in it will inherit the dmode on.
How does this effect the use of Lua as a configuration language?
Do configuration writers have to use the "global" keyword? That's fine with
me, but might be hard to remember.
function make_defaults()
settings = {}
settings.color = GetUserColor()
...
end
Works now to create a global for the configuration. Under the new system
what is the granularity of the setting that requires the global keyword? By
state, file, function, or block? Is automatically set if you use the
"global" keyword or do I need to turn on the checking somehow?
Great that this is being addressed.
Russ