View Single Post
08-18-14, 05:15 AM   #7
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by myrroddin View Post
Code:
local lib = LibStub:NewLibrary("MyLibrary-1.0", 1)
As Phanx said, this would be equivalent to
Code:
local ADDON_NAME, private_table = ...
What? That's absolutely not what I said, nor is it correct. Other than both assigning values to variables, those two lines of code have nothing at all in common. LibStub does not do anything with the variables passed into files.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote