View Single Post
08-05-14, 10:47 AM   #4
Sharparam
A Flamescale Wyrmkin
 
Sharparam's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2011
Posts: 102
You can get around the "not defined" issue by forward-declaring functions:

lua Code:
  1. local b
  2.  
  3. local function a() b() end
  4.  
  5. function b() print 'foo' end

Last edited by Sharparam : 08-05-14 at 10:49 AM. Reason: Declaring `a` not really needed
  Reply With Quote