lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Oct 20, 2011 at 7:07 PM, Rob Hoelz <rob@hoelz.ro> wrote:
Hello list,

...

Can someone give me some pointers on the proper way to bind a library that uses callbacks, especially one that doesn't
allow you to thread your own userdata through the callbacks?  Coroutines make it tricky, and my understanding is that
storing things in global variables in the binding are a faux pas.

Thanks,
Rob


Maybe the code here can shed some light?

https://github.com/rrthomas/lua-rlcompleter

Regards,
Ignacio