Bind

angerangel edited this page Jan 2, 2013 · 1 revision
Clone this wiki locally

Table of Contents

USAGE

  BIND word context /copy /only /new /set

DESCRIPTION

Binds words to the specified context. BIND is a native value.

ARGUMENTS

  • word -- A word or block of words (modified) (returned) (block! any-word!)
  • context -- A reference to the target context (any-word! any-object!)

REFINEMENTS

  • /copy -- Deep copy block before binding it
  • /only -- Bind only first block (not deep)
  • /new -- Add to context any new words found
  • /set -- Add to context any new set-words found

SOURCE

bind: make native! [  [
    "Binds words to the specified context."
    word [block! any-word!] "A word or block of words (modified) (returned)"
    context [any-word! any-object!] "A reference to the target context"
    /copy "Deep copy block before binding it"
    /only "Bind only first block (not deep)"
    /new "Add to context any new words found"
    /set "Add to context any new set-words found"
] ]