lua-users home
lua-l archive

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


Is there a reason not to have a coroutine.current() which returns the
current coroutine or nil if not executing a coroutine or if not that then to
have a C API function which would push the current coroutine or nil.

The reason I'm interested in this is that I'm thinking about ways to
implement coroutine-local storage for coroutines that I may not have
created.

Mark