lua-users home
lua-l archive

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

On Jan 25, 2010, at 2:36 PM, Edgar Toernig wrote:

> wrote:
>> 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. 

That's a nice way to do the analysis. "Stack-based environments" however is probably still clearer than "dynamic binding" though it refers to mechanism rather than effect.