View Single Post
09-02-14, 05:14 PM   #7
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Originally Posted by Phanx View Post
Even for local testing you should be vigilant in avoiding global leaks, especially generic ones like _, as you can easily taint vast swaths of the UI and inadvertently let other addons (and even the Blizzard UI code) mess with your code. It's just not that hard to type the "local" keyword in front of your variable declaration. Stop being so lazy; even I'm not that lazy. ಠ_ಠ
That wasn't about being lazy. I was trying to get this to work (not even as a working addon but as a proof of concept) and the addon table was intentionally global to query it's contents ingame via /script and /dump.

There was only this single addon loaded, and in this specific situation I didn't care about any Blizzard stuff that could be affected by it.

I would never do this outside this specific circumstances. You see, there's no need to get ಠ_ಠ. (whatever this means )

Last edited by Duugu : 09-02-14 at 05:16 PM.
  Reply With Quote