< Rebol Programming
USAGE:
CATCH block /name word
DESCRIPTION:
Catches a throw from a block and returns its value.
CATCH is a native value.
ARGUMENTS
- block -- Block to evaluate (Type: block)
REFINEMENTS
- /name -- Catches a named throw.
- word -- One or more names (Type: word block)
SOURCE CODE
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"
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.