From 7b61cfa3e46c52f848e1077a27fbb3ab7456d83b Mon Sep 17 00:00:00 2001 From: Philipp Haller Date: Fri, 16 Nov 2007 15:55:43 +0000 Subject: Fixed fringe example --- docs/examples/actors/fringe.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/examples/actors/fringe.scala b/docs/examples/actors/fringe.scala index 0d00dc857c..2026628cb3 100644 --- a/docs/examples/actors/fringe.scala +++ b/docs/examples/actors/fringe.scala @@ -31,13 +31,12 @@ object fringe extends Application { self ! Equal(ch1.?, ch2.?) case Equal(atom1, atom2) => - println("comparing "+atom1+" and "+atom2) if (atom1 == atom2) atom1 match { case None => println("same fringe") exit() case _ => - self ! Triple('Equal, ch1.?, ch2.?) + self ! Equal(ch1.?, ch2.?) } else { println("fringes differ") exit() @@ -56,7 +55,6 @@ object fringe extends Application { case Extract(tree) => tree match { case atom @ Leaf(_) => - println("sending "+Some(atom)) output ! Some(atom) sender ! 'Continue @@ -79,6 +77,6 @@ object fringe extends Application { } } - comparator ! ('Fringe, Node(Leaf(5), Node(Leaf(7), Leaf(3))), + comparator ! CompareFringe(Node(Leaf(5), Node(Leaf(7), Leaf(3))), Node(Leaf(5), Node(Leaf(7), Leaf(3)))) } -- cgit v1.2.3