Rebol Programming/bind

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

USAGE:[edit | edit source]

BIND words known-word /copy 

DESCRIPTION:[edit | edit source]

Binds words to a specified context.

BIND is a native value.

ARGUMENTS[edit | edit source]

  • 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 | edit source]

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

SOURCE CODE[edit | edit source]

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."