Environments

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Environments

fschmidt
Administrator
See http://www.lua.org/manual/5.2/manual.html#2.2

As we discussed, I will remove the global environment and make one environment per file.  I will remove the _G variable.  _ENV will be the first upvalue in each chunk.  If a chunk calls a Java function, that function will have access to the _ENV of the calling chunk and will modify that instead of the old global environment.

If you still agree, assign this back to me to do.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Environments

Hugo <Nabble>
I agree. Sharing values across files is probably more confusing than useful.
Reply | Threaded
Open this post in threaded view
|

Re: Environments

fschmidt
Administrator
done in rev 87
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Environments

Hugo <Nabble>
It looks good.
Reply | Threaded
Open this post in threaded view
|

Re: Environments

fschmidt
Administrator
closing thread
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture