View Single Post
05/26/14, 01:57 PM   #10
stjobe
 
stjobe's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 60
Originally Posted by zgrssd View Post
Why do I write 'OnTrackStateChanged' before regsitering the Callback? Is it's parameter list supposed to be the "siganture" of the Event?
If it is only the protoype for the Events Signature, why does it also contain code? Was somebody just lazy and wanted to use the same function as Prototype for Registering the Event and as the Callback that is later registerd to the event?
http://www.luafaq.org/gotchas.html#T3.2

Edit: In Lua, you can't call a function before it's declared.
  Reply With Quote