summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPhilipp Haller <hallerp@gmail.com>2007-11-16 15:55:43 +0000
committerPhilipp Haller <hallerp@gmail.com>2007-11-16 15:55:43 +0000
commit7b61cfa3e46c52f848e1077a27fbb3ab7456d83b (patch)
treefac93ca93872d61aba7685de390815deb98e6ffa /docs
parentfa369bcf652e0109aa81837f426321cb763ede3c (diff)
downloadscala-7b61cfa3e46c52f848e1077a27fbb3ab7456d83b.tar.gz
scala-7b61cfa3e46c52f848e1077a27fbb3ab7456d83b.tar.bz2
scala-7b61cfa3e46c52f848e1077a27fbb3ab7456d83b.zip
Fixed fringe example
Diffstat (limited to 'docs')
-rw-r--r--docs/examples/actors/fringe.scala6
1 files 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))))
}