lua-users home
lua-l archive

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

On Tue, Jan 19, 2010 at 6:56 AM, Mark Hamburg <> wrote:
> This is arguably one of the strongest arguments for the dynamic scoping proposal. in-do-end already deals with one of the chief reasons to use a stack level index in setfenv. Dynamic scoping would deal with one of the chief reasons to do an indexed getfenv.

I get worried by the phrase 'dynamic scoping', since it implies that
one can never tell what environment is currently loaded. Is the idea
to use it instead of the current trick of resetting a function
environment?  What are the abuse scenarios?