\begin{slide}{Actors (Scala)}

\url{http://www.scala-lang.org/node/242}

\begin{verbatim}
object Stop
class Server extends Actor { def act() {
    var running = true;
    while (running) { receive {
        case x : Int => println(x)
        case Stop => running = false; } } } }
var s = new Server()
s.start ; s ! 42 ; s ! Stop
\end{verbatim}

\end{slide}
