This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lupus590's profile picture

Feeling like I've made something a bit hacky...

Started by Lupus590, 07 March 2018 - 08:01 PM
Lupus590 #1
Posted 07 March 2018 - 09:01 PM
This is one of the reasons I like Lua, it allows me to do things like this.
Luca_S #2
Posted 11 March 2018 - 05:11 PM
What's the difference between what you are doing and just loading the string using loadstring?
Lupus590 #3
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.