lua-users home
lua-l archive

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

> 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()

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.