miguel sofer wrote:
> The same tech makes possible a new command [yieldTo]: essentially > [tailcall] but yielding instead of returning - that is, saving the state > of the current coro, so that it can be reawakened later on. I am > planning to put this into ::tcl::unsupported.
That's the classic definition of yield in a coroutine. What we have/had
before was really a "generator".
> I think that this command could find very interesting applications. The > big Q is: shall I try to TIP it as an amendment to TIP #328? I DO know > it is rather late ...
For unsupported? No need. For supported? It would be good to see what
you propose in that case. Off-the-wall suggestion: maybe a "-target"
option to normal [yield] would be better...?
Donal.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core