문제
이 슬라이드 쇼에서 켜집니다 Scalaactors.pdf 메시지가 Pong 배우에게 전송 될 때 단일 인용문은 무엇을 나타 냅니까?
class Ping(count: int, pong: Pong) extends Actor {
def act() {
pong ! 'Ping // what does the single quote indicate???
receive {
case 'Pong =>
}
}
}
다른 팁
기호를 나타냅니다. 예를 들어. CFR http://www.scala-lang.org/docu/files/api/scala/symbol.html :
스칼라 용어 'mysym은 기호 클래스의 생성자를 다음과 같은 방식으로 호출합니다 : Symbol ( "mysym").
제휴하지 않습니다 StackOverflow