lua-users home
lua-l archive

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

I keep creating new coroutines with lua_newthread, and each time I do, I
notice lua_gettop is incrementing by one.  Am I supposed to be immediately
popping them from the stack when I create them? Or am I supposed to leave
them there (until their life is over)?

Why does lua assume to automatically put new threads I create onto the stack
for me?