View Single Post
03/24/14, 04:15 PM   #11
skyraker
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 154
Thanks you for all the replies so far. Scope is always a fun topic.

1) Like all the talk about using spacer as a global, but my addon didn't call it simply that. Looking at things, I managed to completely rid it as a global though.

2) If a global in the lua file is available to all addons, and making it a local outside the scope of any function makes it only available to the addon, then I may have my problem solved in a sense without much of a change. When I was thinking of it as a global, I was thinking only that it was global to the addon. If that is more 'acceptable', then maybe it is best to keep things that way (but just in case ensure all my variables aren't easily reproducible by other addons).
  Reply With Quote