On 31 January 2011 13:45, Alexander Gladysh
<agladysh@gmail.com> wrote:
Side note: You ought to use coroutines in Lua for this.
+1. Callbacks are a bodge. Closures make it slightly easier to keep the state around for your callback, but coroutines are just so much cleaner.