Thread: Global vars ?
View Single Post
10-31-14, 09:43 PM   #5
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 1,240
One other reason to use global scope variables is if your AddOn creates APIs that a separate AddOn might use. For example, HandyNotes has several globals, which is how any plugins gain access.

TomTom has some global APIs that other AddOns can use to add waypoints to TomTom.

However, in most cases it is best to create AddOns as being as much self-enclosed as possible.
  Reply With Quote