Oz and Mozart Users Mailing List

Re: closable port?


From: Kevin Glynn (glynn@info.ucl.ac.be)
Date: Fri Apr 25 2003 - 12:00:06 CEST


Gabor Szokoli writes:
> Denys Duchier wrote:
>
> >The obvious: let the producer send a special value indicating the end
> >that can be recognized by the consumer.
> >
> >
> Oh well. It just looked soo cool to write {Map Stream Consumer}...
> One more reason to switch to "for" loops: break!
>

Or maybe not ......

{Map {List.takeWhile Stream fun {$ X} X \= close_stream end} Consumer}

cheers
Kevin

-
Please send submissions to users@mozart-oz.org
and administriva mail to users-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
Please send bug reports to bugs@mozart-oz.org.



This archive was generated by hypermail 2b29.