[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.2 and in-do-end
- From: Edgar Toernig <froese@...>
- Date: Mon, 25 Jan 2010 23:36:43 +0100
> in-do-end only seems to be interesting for sandboxing with stack-based
> rather than function-based environments. (I'm thinking that terminology
> may be more descriptive than "dynamic scoping".)
I agree, especially as the scope is not dynamic at all. By lexical
rules it's either local or global. The "binding" of globals is dynamic.
Locals: early binding.
Globals in function-based environment: late binding.
Globals in stack-based environment: dynamic binding.