Resolve

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

USAGE

   RESOLVE target source /only from /all /extend

DESCRIPTION

Copy context by setting values in the target from those in the source.

RESOLVE is a native value.

ARGUMENTS

  • target (any-object!)
  • source (any-object!)

REFINEMENTS

  • /only
    • from -- Only specific words (exports) or new words in target (index to tail) (block! integer!)
  • /all -- Set all words, even those in the target that already have a value
  • /extend -- Add source words to the target if necessary

#SOURCE

resolve: make native! [  [
    {Copy context by setting values in the target from those in the source.}
    target [any-object!]
    source [any-object!]
    /only from [block! integer!] {Only specific words (exports) or new words in target (index to tail)}
    /all {Set all words, even those in the target that already have a value}
    /extend "Add source words to the target if necessary"
] ]