Catch

angerangel edited this page Jan 2, 2013 · 1 revision
Clone this wiki locally

Table of Contents

USAGE

  CATCH block /name word /quit

DESCRIPTION

Catches a throw from a block and returns its value. CATCH is a native value.

ARGUMENTS

  • block -- Block to evaluate (block!)

REFINEMENTS

  • /name -- Catches a named throw
    • word -- One or more names (word! block!)
  • /quit -- Special catch for QUIT native

SOURCE

catch: make 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"
    /quit "Special catch for QUIT native"
] ]