diff options
author | Philipp Haller <hallerp@gmail.com> | 2006-10-10 14:18:42 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2006-10-10 14:18:42 +0000 |
commit | 97efa1560f5d1f90050b9b17bce196e961ee8f88 (patch) | |
tree | c2eecae48dc241920419fa1e6b30b9b65ebfecbb /docs/examples/actors/PingPong.scala | |
parent | 6fe33e19fb1cadbbc33f6e70f867eb1c40a4427d (diff) | |
download | scala-97efa1560f5d1f90050b9b17bce196e961ee8f88.tar.gz scala-97efa1560f5d1f90050b9b17bce196e961ee8f88.tar.bz2 scala-97efa1560f5d1f90050b9b17bce196e961ee8f88.zip |
Diffstat (limited to 'docs/examples/actors/PingPong.scala')
-rw-r--r-- | docs/examples/actors/PingPong.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/actors/PingPong.scala b/docs/examples/actors/PingPong.scala index 5f28aef162..dbc35e36a4 100644 --- a/docs/examples/actors/PingPong.scala +++ b/docs/examples/actors/PingPong.scala @@ -1,6 +1,6 @@ package examples.actors -import scala.actors.Reactor +import scala.actors.Actor import scala.actors.Actor._ abstract class PingMessage @@ -25,7 +25,7 @@ object PingPong { } -class Ping extends Reactor { +class Ping extends Actor { def act(): unit = { loop(0, null) } @@ -60,7 +60,7 @@ class Ping extends Reactor { } } -class Pong extends Reactor { +class Pong extends Actor { def act(): unit = { loop(0) } |