Commit d5533e2e authored by Jim Newton's avatar Jim Newton

added comment

parent f7d874e7
Pipeline #18472 passed with stage
in 12 minutes and 42 seconds
......@@ -63,6 +63,10 @@ object CLcompat {
// by the caller.
// Usage: block{ ret => ... ret(someValue) ...}
// extending Exception with NoStackTrace prevents throwing the
// exception from computing the stacktrace and storing the information.
// We don't need a stacktrace because the purpose of this exception
// is simply to perform a non-local exit.
import scala.util.control.NoStackTrace
class NonLocalExit(val data:A) extends Exception with NoStackTrace {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment