lua-users home
lua-l archive

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


hi,all:
  now i'm confusing about the problem:
  in script, i create and run a coroutine, and then call into a C-function,  and in it i want to call back to lua, then which "L" should i use for this callback ? is it the current coroutine's L, or the "Main Coroutine" 's L? or even a completely new clean L which is dedicated for work of this type ?
  until now, i'm using the second way -- "Main Coroutine" 's L, and encounters nearly no error, but i am worried about if it won't work someday after my code runs too large...
  could u everyone give me some Guidelines?sthanks...