53
在ScalaActors.pdf的幻燈片中,單引號指示何時將消息發送給乒乓演員?Scala中的單引號是什麼意思?
class Ping(count: int, pong: Pong) extends Actor {
def act() {
pong ! 'Ping // what does the single quote indicate???
receive {
case 'Pong =>
}
}
}