lua-users home
lua-l archive

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

On Thu, 21 Jan 2010, Mark Hamburg wrote:

> Yes though that code isn't quite right since it needs to actually 
> build something that looks up in env followed by the current 
> environment.

I suppose you'll need debug.getfenv() for that, no?  If you need to 
keep track of the current env yourself explicitly (say by 
side-effecting some state which you need to undo) then I'm not sure 
how it would work.