diff options
Diffstat (limited to 'src/actors')
-rw-r--r-- | src/actors/scala/actors/Actor.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/actors/scala/actors/Actor.scala b/src/actors/scala/actors/Actor.scala index 826535d451..79ae0e1f83 100644 --- a/src/actors/scala/actors/Actor.scala +++ b/src/actors/scala/actors/Actor.scala @@ -395,9 +395,9 @@ trait Actor extends OutputChannel[Any] { /** * Sends <code>msg</code> to this actor (asynchronous). */ - def !(msg: Any): Unit = send(msg, Actor.self.reply) + def !(msg: Any): Unit = send(msg, Actor.self.getReplyChannel) - def forward(msg: Any): Unit = send(msg, Actor.sender.reply) + def forward(msg: Any): Unit = send(msg, Actor.sender.getReplyChannel) /** * Sends <code>msg</code> to this actor and awaits reply @@ -423,7 +423,7 @@ trait Actor extends OutputChannel[Any] { def reply(msg: Any): Unit = session ! msg private var rc = new Channel[Any] - def reply = rc + def getReplyChannel = rc def freshReply() = { rc = new Channel[Any]; rc } def ? : Any = receive { |