Thread Tools Display Modes
Prev Previous Post   Next Post Next
03-07-19, 06:31 PM   #1
fakesaint41
A Murloc Raider
Join Date: Mar 2019
Posts: 7
Beginner Question: "a,b = ..." At beginning of File

Been looking for an explanation, and I'm a bit stumped! I see something like:

Lua Code:
  1. local a, b = ...

at the beginning of people's scripts. I guess that WoW passes arguments to the chunk when it loads the file, but I'm not clear what those are and why they are useful. The first argument appears to be the name of the addon, and the second is a table of... something I don't know!

Can anyone explain whats going on here and why its useful?

Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Beginner Question: "a,b = ..." At beginning of File


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