Do

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

Table of Contents

USAGE

  DO value /args arg /next var

DESCRIPTION

Evaluates a block, file, URL, function, word, or any other value. DO is a native value.

ARGUMENTS

  • value -- Normally a file name, URL, or block (any-type!)

REFINEMENTS

  • /args -- If value is a script, this will set its system/script/args
    • arg -- Args passed to a script (normally a string)
  • /next -- Do next expression only, return it, update block variable
    • var -- Variable updated with new block position (word!)

SOURCE

do: make native! [  [
    {Evaluates a block, file, URL, function, word, or any other value.}
    value [any-type!] "Normally a file name, URL, or block"
    /args {If value is a script, this will set its system/script/args}
    arg "Args passed to a script (normally a string)"
    /next {Do next expression only, return it, update block variable}
    var [word!] "Variable updated with new block position"
] ]