Previous: , Up: Continuation   [Index]


1.42.2 Continuation: invocation

callCC

Activate the original continuation, passing back in turn a continuation for the caller. The called continuation becomes unusable, and any attempt to reactivate it will cause an exception. This is not a limitation, in general, because this method is used to replace a continuation with another (see the implementation of the Generator class).

oneShotValue

Return nil to the original continuation, which becomes unusable. Attempting to reactivate it will cause an exception. This is an optimization over #value.

oneShotValue: v

Return anObject to the original continuation, which becomes unusable. Attempting to reactivate it will cause an exception. This is an optimization over #value:.

value

Return nil to the original continuation, copying the stack to allow another activation.

value: anObject

Return anObject to the original continuation, copying the stack to allow another activation.

valueWithArguments: aCollection

Return the sole element of aCollection to the original continuation (or nil if aCollection is empty), copying the stack to allow another activation