View Single Post
01-31-12, 07:38 PM   #25
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,327
Originally Posted by Torhal View Post
Including this line, however, is not redundant
The code as posted in its intent, to register the shared table as a global, would be redundant. Reregistering a global multiple times follows the exact definition of redundancy.



Torhol's method of having an addon remain out of the global namespace is a valid approach, although if you have modules loaded as LoD, there isn't any other way around it. Also a global namespace helps with poking around your addon while trying to debug errors.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 01-31-12 at 07:45 PM.
  Reply With Quote