REBOL Programming/catch

USAGE:Edit

CATCH block /name word 

DESCRIPTION:Edit

Catches a throw from a block and returns its value.

CATCH is a native value.

ARGUMENTSEdit

  • block -- Block to evaluate (Type: block)

REFINEMENTSEdit

  • /name -- Catches a named throw.
    • word -- One or more names (Type: word block)

SOURCE CODEEdit

catch: native[
    {Catches a throw from a block and returns its value.} 
    block [block!] "Block to evaluate" 
    /name "Catches a named throw." 
    word [word! block!] "One or more names"
]

{{BookCat}}
Last modified on 27 October 2012, at 22:16