View Single Post
09-08-08, 03:24 PM   #33
Mikord
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 61
Originally Posted by kerrang View Post
So if we take this function
...
name,stack,duration,timeleft are all declared as global variables?
Yes, unless they were previously declared as locals and being accessed as upvalues. Try it:

Code:
local function test()
 name = "MyTest"
end

test()
print(name)
  Reply With Quote