Jump to content




Custom Error's Using pcall()


  • You cannot reply to this topic
21 replies to this topic

#21 Henness

  • Members
  • 189 posts

Posted 23 January 2014 - 05:28 AM

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()

#22 CometWolf

  • Members
  • 1,283 posts

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