2427 posts
Location
UK
Posted 07 March 2018 - 09:01 PM
This is one of the reasons I like Lua, it allows me to do things like
this.
477 posts
Location
Germany
Posted 11 March 2018 - 05:11 PM
What's the difference between what you are doing and just loading the string using loadstring?
2427 posts
Location
UK
Posted 11 March 2018 - 09:12 PM
loadstring uses the global enviroment, this uses the current programs enviroment. Additionally, loaded strings can use values in the program and the as if the string was a normal function.