[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: stack level parameter
- From: GrayFace <sergroj@...>
- Date: Tue, 19 Jan 2010 17:00:14 +0600
IMO, stack level parameter is a problem in 'error', not in getfenv/setfenv.
I think a solution to both is to have a way to mark current stack level
as 'skip me'. It can be stored in CallInfo structure. Functions like
pcall should set this flag.
On 19.01.2010 10:56, Mark Hamburg wrote:
On Jan 18, 2010, at 8:37 PM, David Manura 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.
Sergey Rozhenko mailto:email@example.com