< Rebol Programming
USAGE:
DOES body
DESCRIPTION:
A shortcut to define a function that has no arguments or locals.
DOES is a function value.
ARGUMENTS
- body -- The body block of the function (Type: block)
(SPECIAL ATTRIBUTES)
- catch
SOURCE CODE
does: func [ {A shortcut to define a function that has no arguments or locals.} [catch] body [block!] "The body block of the function" ][ throw-on-error [make function! [] body] ]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.