Jump to content

Rebol Programming/forever

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
FOREVER body 

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." 
    [throw] 
    body [block!] "Block to evaluate each time"
][
    while [on] body
]