View Single Post
08-02-18, 05:54 PM
A Flamescale Wyrmkin
Join Date: Oct 2011
Originally Posted by
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
View Public Profile
Send a private message to Sharparam
Visit Sharparam's homepage!
Find More Posts by Sharparam