Posted 03 January 2015 - 03:33 PM
Hello!
So, from another one of my questions I know that
My question is, how would you set the environment to include everything BUT specific functions.
For ex, I want to make every function work except print and fs.create.
How would that be possible?
(Does not necessarily have to use setfenv)
So, from another one of my questions I know that
setfenv(shell.run("MyProgram"),{print=_G.print})
Would set the environment to where only the print function was allowed.My question is, how would you set the environment to include everything BUT specific functions.
For ex, I want to make every function work except print and fs.create.
How would that be possible?
(Does not necessarily have to use setfenv)
Edited on 03 January 2015 - 02:34 PM