[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: coroutine.current()
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 21 Sep 2004 12:55:52 -0700
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