lua-users home
lua-l archive

Re: changing global environments

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


	Hi Graham
> Is there any way to set the environment of a function such that all 
> functions it calls will also inherit this environment? In the 
> example below, I change the environment of fmain, which in turn calls 
> fsub, but the environment of fsub is unchanged.
	I don't think so. Anyway I think it should became a nightmare
if this became the default behavior. Good luck!
	By the way, did you try to set the call hook to do that change
of environments?
	Again, good luck,
		Tomás

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