lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] 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.