Rebol Programming/forever

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

USAGE:[edit | edit source]


DESCRIPTION:[edit | edit source]

Evaluates a block endlessly.

FOREVER is a function value.

ARGUMENTS[edit | edit source]

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

(SPECIAL ATTRIBUTES)[edit | edit source]

  • throw

SOURCE CODE[edit | edit source]

forever: func [
    "Evaluates a block endlessly." 
    body [block!] "Block to evaluate each time"
    while [on] body