< Rebol Programming
USAGE:
ATTEMPT value
DESCRIPTION:
Tries to evaluate and returns result or NONE on error.
ATTEMPT is a function value.
ARGUMENTS
- value -- (Type: any)
(SPECIAL ATTRIBUTES)
- throw
SOURCE CODE
attempt: func [
{Tries to evaluate and returns result or NONE on error.}
[throw]
value
][
unless error? set/any 'value try :value [get/any 'value]
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.