REBOL Programming/use

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

USAGE:[edit]

USE words body 

DESCRIPTION:[edit]

Defines words local to a block.

USE is a native value.

ARGUMENTS[edit]

  • words -- Local word(s) to the block (Type: block word)
  • body -- Block to evaluate (Type: block)

SOURCE CODE[edit]

use: native[
    "Defines words local to a block." 
    words [block! word!] "Local word(s) to the block" 
    body [block!] "Block to evaluate"
]