lua-users home
lua-l archive

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


Hi.
 
> The thing you have to recognize is that you don't need to eliminate 
the
> recursion in all of the special cases to get what you want.  Please 
see the
> details in the post I just made to the list-thread "Lua and light 
threads".
> 

Yeah, i'v read this. And it's similar to what i'v been doing. I keep 
track of how deep i am in CClosures and would use that to detect is a 
sleep command was valid. I think my code was working and think i 
managed to get the TAILCALL case working also. I had at least 1 bug 
left but was having a hard time putting the finger on it.

Just one thing i'm wondering though. How would your approach to 
making Lua non recusive help in case of serialization since you'd 
also need to serialize the program counter and the other lua states?

Sebby.