lua-users home
lua-l archive

Re: Sandbox and modules

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


Methinks you are referring to a C module? WHich is a problem that
I have to address later.
My current problem resides with Lua.
I dont quite undestand you response, can you explain a different way?
David B
On 7/17/06, Tomas <tomas@ccpa.puc-rio.br> wrote:
>> 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

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