< Rebol Programming

USAGE:

FOREVER body 

DESCRIPTION:

Evaluates a block endlessly.

FOREVER is a function value.

ARGUMENTS

  • body -- Block to evaluate each time (Type: block)

(SPECIAL ATTRIBUTES)

  • throw

SOURCE CODE

forever: func [
    "Evaluates a block endlessly." 
    [throw] 
    body [block!] "Block to evaluate each time"
][
    while [on] body
]
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.