lua-users home
lua-l archive

Re: getfenv question

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


Hello Mark,
 Can you better explain what you want? Are you making this in C or in
Lua? Are you using the debug api?
 What you want is to limit the access for getfenv?
 The
God's Peace,
Leandro.
----- Original Message -----
From: "Mark Hamburg" <mhamburg@adobe.com>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, December 17, 2003 11:14 PM
Subject: getfenv question
> Is there a way other than wrapping things in pcall to tell what the
maximum
> level I can pass to getfenv is?
>
> I'm trying to implement pseudo-dynamic scoping by searching up the call
> chain for the first function environment referencing a particular
variable.
>
> Mark
>
>

AltStyle によって変換されたページ (->オリジナル) /