View Single Post
01-17-15, 02:38 PM   #7
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 136
Had another quick question with this code:

Lua Code:
  1. -- File A
  2. addon.FunctionInFileB(myVariable)
  3.  
  4. -- File B
  5. function addon.FunctionInFileB(var)
  6.      -- Various code
  7. end

Is "var" in File B's function considered global, or local?

EDIT: Based on what I've found via google, it seems they are local (which I had figured). If this is incorrect, please say so

Last edited by Sweetsour : 01-17-15 at 02:47 PM.
  Reply With Quote