Search lua-l
This index contains 143,615 documents and
1,774,615 keywords. Last update on
2023-03-09 .
- 21. Re: Sandboxing a module that clutters the global environment (score: 33)
- Author: Thijs Schreijer <thijs@...>
- Date: Wed, 5 Oct 2016 19:32:41 +0000
- The proper way to do singletons (imo) would be to store state in module level upvalues. These are fairly easy to work around by clearing the module from the `package.loaded` table. Something like th
- 22. Re: Sandboxing a module that clutters the global environment (score: 33)
- Author: "Soni L." <fakedme@...>
- Date: Wed, 5 Oct 2016 10:32:47 -0300
- 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
Search by
Namazu v2.0.21