O object

NonLocalReturns

extends Object with Serializable

Library implementation of nonlocal return.

Usage:

import scala.util.control.NonLocalReturns._

returning { ... throwReturn(x) ... }

Supertypes

Object, Serializable

Members

class 

ReturnThrowable

[T]

def 

returning

[T] ( op: implicit ReturnThrowable[T] => T ) : T

Enable nonlocal returns in op.

Enable nonlocal returns in op.

def 

throwReturn

[T] ( result: T ) ( implicit  returner: ReturnThrowable[T] ) : Nothing

Performs a nonlocal return by throwing an exception.

Performs a nonlocal return by throwing an exception.