Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-26 Thread Larry Wall
On Tue, Jan 27, 2009 at 12:27:56AM +0100, Aristotle Pagaltzis wrote: : * Aristotle Pagaltzis [2009-01-02 23:00]: : > That way, you get this combination: : > : > sub pid_file_handler ( $filename ) { : > # ... top half ... : > yield; : > # ... bottom half ... : > } :

Re: Converting a Perl 5 "pseudo-continuation" to Perl 6

2009-01-26 Thread Aristotle Pagaltzis
* Aristotle Pagaltzis [2009-01-02 23:00]: > That way, you get this combination: > > sub pid_file_handler ( $filename ) { > # ... top half ... > yield; > # ... bottom half ... > } > > sub init_server { > # ... > my $write_pid = pid_file_handler( $