Originally Posted by zgrssd
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.