lua-users home
lua-l archive

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


        You are reusing the functions of the module but changing its
environment?
Yes, exactly.
	Why don't you force a new call to require() to assure the new
environment of the functions?  I think you could achieve that by caching
the module open function.  A new call to require"module" would invoke the
cached function and a new environment would be assigned to the functions.

	Tomas