On Wed, 2005-05-04 at 09:47, Joshua Gatcomb wrote: > So without asking for S17 in its entirety to be written, is it > possible to get a synopsis of how p6 will do coroutines?
A coroutine is just a functional unit that can be re-started after a previous return, so I would expect that in Perl, a coroutine would be defined by the use of a variant of return, such as: sub generate_this() { for 1..10 -> $_ { coreturn $_; } } Of course, I'm pulling that out of my @ss, so YMMV. ;-) -- Aaron Sherman <[EMAIL PROTECTED]> Senior Systems Engineer and Toolsmith "It's the sound of a satellite saying, 'get me down!'" -Shriekback