At 11:04 PM +0200 5/29/06, Klaas-Jan Stol wrote:
I couldn't find any functionality to reset a coroutine. Sometimes you want to reset a coroutine, so it starts at the beginning of the sub body, but there doesn't seem to be any method to do that. Am I overlooking something?
Good point.Essentially you would be removing the continuation context of that subroutine / method.
A method on a method maybe? foo.reset( bar => 1 ); comes to mind? Suggestions? Comments? Liz