Rebol Programming/throw

From Wikibooks, open books for an open world
< Rebol Programming
Jump to navigation Jump to search

USAGE:[edit | edit source]

THROW value /name word 

DESCRIPTION:[edit | edit source]

Throws control back to a previous catch.

THROW is a native value.

ARGUMENTS[edit | edit source]

  • value -- Value returned from catch (Type: any-type)

REFINEMENTS[edit | edit source]

  • /name -- Throws to a named catch.
    • word -- (Type: word)

SOURCE CODE[edit | edit source]

throw: native[
    "Throws control back to a previous catch." 
    value [any-type!] "Value returned from catch" 
    /name "Throws to a named catch." 
    word [word!]
]