Raphael Collet wrote:
[...]
The following version is even shorter. But you have to think a bit to understand why and how it works ;-)

declare
P={NewPort thread {ForAll $ Browse} end}

wow... this one is very short, but as you said, it's not that obvious to read. I wouldn't use it if I want other people to read or maintain that code.

cheers,
Boriss


The thread ... end defines a concurrent expression that returns the list variable that the ForAll loop traverses. That variable is then bound to the stream of the port.

Cheers,
raph


------------------------------------------------------------------------

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to