Fandom

WoWWiki

Talk:API RunScript

Back to page

104,768pages on
this wiki
Add New Page

"It does things globally" Edit

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)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.