[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Sandboxing a module that clutters the global environment
- From: tyrondis <tyrondis@...>
- Date: Thu, 06 Oct 2016 00:31:02 +1100
Hi *,
I have a 3rd party module that operates and maintains its state in the global environment.
Is there anyway I can load this module into a custom context table, so that it uses that table as its _G? I want to be able to have multiple instances of that module, which is currently not possible because of its “Singleton” nature.
I could also refactor the 3rd part module but I want to have it untouched to make it easier to apply potential patches to it.
Thanks
Tyr