yea I have no idea I dont even know what a environment is. I looked is up but still doesn't make sense to me. Im just not gonna bother with shell.getRunningProgram()
Custom Error's Using pcall()
Started by Henness, Jan 21 2014 01:15 PM
21 replies to this topic
#21
Posted 23 January 2014 - 05:28 AM
#22
Posted 23 January 2014 - 05:38 AM
The enviroment is where all the variables are stored. They're just tables which are looked through when looking for a variable. If you try to call a variable not in the current enviroment you'll get an attempt to call nil, unless you use some meta table trickery. When you're running your scripts, the enviroment in use is usually _G, which is the global enviroment.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











