View Single Post
01-17-15, 07:28 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Originally Posted by Lombra View Post
Yeah, it is local to the function, in exactly the same way as it would be had you done this:
Code:
function addon.FunctionInFileB()
     local var
end
... Teeeechnically, yes... Except in Sweetsour's code, var would have the value myVariable passed to it, whereas in your code, var is nil.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote