Re: Ruby BuiltIn functions callcc
callcc {| cont | block } -> anObject
Generates a Continuation object, which it passes to the associated block. Performing a cont .call will cause the callcc to return (as will falling through the end of the block). The value returned by the callcc is the value of the block, or the value passed to cont .call. See Continuation on page 294 for more details. Also see Kernel::throw for an alternative mechanism for unwinding a call stack.
__________________ Shaalini.S Be the Best of Whatever you are... |