LibStub is what most (if not all, by now) libraries use as a version manager. Every copy of LibPeriodicTable in your addon folder registers itself with LibStub as it loads. If the version currently registering has a higher minor version number (be sure to change this at/near the top of the library files) that was has previously been loaded, LibStub allows it to overwrite was was previously there. If it is a lower minor version, LibStub exits out and preserves the more recent version in memory.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
|