lua-users home
lua-l archive

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


Do you have multiple lua_States created by lua_newstate, or just
separate coroutines created by lua_newthread?

-Rob

On Fri, May 11, 2012 at 09:54:13AM +0200, Thijs Schreijer wrote:
> A lot has been written on callbacks, but couldn't find an answer to this one
> in the archives;
> 
>  
> 
> Does it make a difference on what (valid) lua_State object I execute a
> callback? Does it change anything for the callback function being executed?
> Or is there no difference, whatever lua_State is being used (as long as it
> is valid)?
> 
>  
> 
> Any pointers are appreciated.
> 
>  
> 
> Thijs
>