Thread Tools Display Modes
08-02-18, 05:54 PM   #1
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
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

WoWInterface » Developer Discussions » General Authoring Discussion » Recursing Addons


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off