Talk:API RunScript

"It does things globally"
I deleted
 * 2. It does things globally, so to get data out of it you have to pollute at least one global variable. This isn't a big deal but it's mildly annoying.

because everything in Lua is global by default. The sentence was stating the obvious. The part about "polluting a global variable" is not true, because you could use stuff like ChatFrame1:AddMessage in the string for printing. Also, I wouldn't consider RunScript("MyAddon.result = 1+1") as polluting a global variable.Tifi 09:41, 10 November 2007 (UTC)