Skip to content

Commit ee0aafe

Browse files
author
mdodsworth
committed
adding simple actors
1 parent 73b697f commit ee0aafe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

simple-actor-script.scala

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import scala.actors.Actor
2+
import scala.actors.Actor._
3+
4+
class Redford extends Actor {
5+
def act() {
6+
println("this is a redford test call")
7+
}
8+
}
9+
10+
val newman = actor {
11+
println("to be an actor, you must be a child")
12+
}
13+
14+
val robert = new Redford
15+
robert.start
16+

0 commit comments

Comments
 (0)