Quantcast WoWInterface - View Single Post - Recursing Addons
View Single Post
08-02-18, 05:54 PM   #9
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 101
Originally Posted by candrid View Post
It's the "..." part. What do they mean? I've read some books with no direct answer.
When WoW loads a script file it passes two arguments to it: the name of the addon and a private table you can use to store data in (to use across different files). You save them by reading them from the "varargs" passed to the file like in the code above.

The private table can be used to share code/functions across different files without having to create a table that lives in the global namespace, making things cleaner
  Reply With Quote