develooper Front page | perl.perl6.language | Postings from August 2000

Re: RFC 27 (v1) Coroutines for Perl

Thread Previous
From:
Tom Scola
Date:
August 4, 2000 10:52
Subject:
Re: RFC 27 (v1) Coroutines for Perl
Message ID:
398afbbf.95b1.0@inch.com
>I don't see the need for a new keyword. An attribute should be fine
>
>	sub foo : coroutine { }
>
>Would do quite well. It would fit with the :method attribute, and
>a possible :lvalue attribute.

That would be fine.

>Anyway, isn't what you are proposing more of a generator/sink rather
>than a coroutine? I understood a coroutine to be a set of mutual
>calling functions/procedures.

The two things you described are the same thing.  Read the second reference
in my RFC:

<http://www.softpanorama.org/Scripting/pipes.shtml>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About