lua-users home
lua-l archive

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


Lot's of typos, sorry.

Sandboxing can be done using _ENV variable or a parameter in the "load" function for the environment.

_ENV is _G by default, which contains all functions you mentioned.
Make a table and put function you allow to use 
On 16 Mar 2022, 21:59 +0300, Spar <developspartv@gmail.com>, wrote:

This is done in Lua using _ENV variable and a parameter in load function for the environment.
Pass a table to that function that doesn't have function don't want users to use