This page is no longer maintained — Please continue to the home page at www.scala-lang.org

"throw new KillActorControl"

1 reply
Todd Vierling
Joined: 2011-04-27,
User offline. Last seen 42 years 45 weeks ago.
[...pondering other standard library optimizations...]
This is littered through the actor code. Since this is really a control-flow statement, is there a reason it's not throwing a singleton (whether an object or val doesn't really matter) rather than repeatedly creating new instances?
By contrast, Breaks contains a val with a singleton for breakable/break.
Todd Vierling
Joined: 2011-04-27,
User offline. Last seen 42 years 45 weeks ago.
Re: "throw new KillActorControl"
On Saturday, October 29, 2011 2:42:56 PM UTC-4, Todd Vierling wrote:
Since this is really a control-flow statement, is there a reason it's not throwing a singleton (whether an object or val doesn't really matter) rather than repeatedly creating new instances?

Ignore the above. I misread the code and was conflating KillActorControl with Actor.suspendException. 

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland