REBOL Programming/bind

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

USAGE:[edit]

BIND words known-word /copy 

DESCRIPTION:[edit]

Binds words to a specified context.

BIND is a native value.

ARGUMENTS[edit]

  • words -- A block of words or single word. (Type: block any-word)
  • known-word -- A reference to the target context. (Type: any-word object port)

REFINEMENTS[edit]

  • /copy -- Deep copies block before binding it.

SOURCE CODE[edit]

bind: native[
    "Binds words to a specified context." 
    words [block! any-word!] "A block of words or single word." 
    known-word [any-word! object! port!] "A reference to the target context." 
    /copy "Deep copies block before binding it."
]

{{BookCat}}