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.
|