lua-users home
lua-l archive

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


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