| Store | Cart

Re: [TCLCORE] Question on coroutines

From: Donal K. Fellows <dona...@manchester.ac.uk>
Mon, 07 Dec 2009 01:04:07 +0000
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

Recent Messages in this Thread
miguel sofer Dec 05, 2009 10:25 pm
Donal K. Fellows Dec 07, 2009 01:04 am
Kevin Kenny Dec 07, 2009 02:47 am
Larry McVoy Dec 07, 2009 02:56 am
Kevin Kenny Dec 07, 2009 04:41 am
Neil Madden Dec 07, 2009 09:35 am
miguel sofer Dec 07, 2009 01:41 pm
Kevin Kenny Dec 07, 2009 02:24 pm
Donal K. Fellows Dec 07, 2009 01:08 pm
miguel sofer Dec 07, 2009 01:20 pm
Donal K. Fellows Dec 07, 2009 02:09 pm
miguel sofer Dec 07, 2009 02:24 pm
miguel sofer Dec 07, 2009 04:44 pm
Neil Madden Dec 07, 2009 02:31 pm
Kevin Kenny Dec 07, 2009 02:44 pm
Neil Madden Dec 08, 2009 01:10 pm
Donald G Porter Dec 08, 2009 02:15 pm
miguel sofer Dec 08, 2009 02:22 pm
Kevin Kenny Dec 07, 2009 02:33 pm
Joe English Dec 08, 2009 06:08 pm
miguel sofer Dec 08, 2009 06:15 pm
Messages in this thread