View Single Post
01-12-15, 01:21 AM   #12
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Alright, makes sense, very good to know!

Last question for the evening. What's the best way to call a function across files? Would it be just as simple as:

Lua Code:
  1. local name, addon = ...;
  2.  
  3. --file1.lua
  4. addon.myFunction();
  5.  
  6. --file 2.lua
  7. function addon.myFunction()
  8.      --do stuff
  9. end
  Reply With Quote