Hi, I'm new to Lua and I want to know the statement ( init_Listener() ) that written at the end of the function init_Listener, what is the benefit from it?? asked 04 Sep '12, 01:36 Leena |
One Answer:
In that example it's just a self declared function in the code that will called as soon as the Lua file gets loaded. You don't have to wrap the Lua Listener code into its own funtion, as done in the example. It's just one way. See the other Lua Examples for different ways. Regards answered 04 Sep '12, 02:24 Kurt Knochner ♦ |