【发布时间】:2010-06-11 00:34:56
【问题描述】:
我是否需要为要在 Scala 演员上检索的消息定义类?
我试图解决这个问题 我哪里错了
def act() {
loop {
react {
case Meet => foundMeet = true ; goHome
case Feromone(qty) if (foundMeet == true) => sender ! Feromone(qty+1); goHome
}}}
【问题讨论】: