Oz and Mozart Hackers Mailing List

Re: Ports and local computation spaces


From: Christian Schulte (schulte@ps.uni-sb.de)
Date: Mon Nov 05 2001 - 17:07:28 CET


Ja, looks stupid. Did you try without "Browse"? Does the bug remain?

CS

"Luis Quesada" <luque@info.ucl.ac.be> schrieb im Newsbeitrag
news:<3BE69C53.C5871CF@info.ucl.ac.be>...
> There is something odd with the following code:
>
> {Space.new proc {$ _}
> S P={NewPort S}
> in
> {Send P a}
> {Space.new proc {$ _}
> {Send P b}
> {Browse 1#S}
> end _}
> {Browse 2#S}
> end _}
>
> When fed it for the first time, one gets this output (as expected
> after assimilating that ports have side effects):
>
> 2#(a|b|'_')
>
> 1#(a|b|'_')
>
> However, if one feeds the code again (without restarting Mozart) you
> get this output:
>
> 1#(a|'_')
>
> 2#(a|'_')
>
> Should not one get the same answer?
>
> Luis
>
> --
> Catholic University of Louvain
> Department of Computing Science and Engineering
> Place Sainte Barbe, 2
> B-1348 Louvain-la-Neuve, Belgium
> Phone: (++32) (10) 47 90 13
> Fax: (++32) (10) 45 03 45
> E-mail: luque@info.ucl.ac.be
>
>
>
> -
> Please send submissions to hackers@mozart-oz.org
> and administriva mail to hackers-request@mozart-oz.org.
> The Mozart Oz web site is at http://www.mozart-oz.org/.

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



This archive was generated by hypermail 2b29.