Rebol Programming/do

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

USAGE:[edit | edit source]

DO value /args arg /next 

DESCRIPTION:[edit | edit source]

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

DO is a native value.

ARGUMENTS[edit | edit source]

  • value -- Normally a file name, URL, or block (Type: any)

REFINEMENTS[edit | edit source]

  • /args -- If value is a script, this will set its system/script/args
    • arg -- Args passed to a script. Normally a string. (Type: any)
  • /next -- Do next expression only. Return block with result and new position.

SOURCE CODE[edit | edit source]

do: native[
    {Evaluates a block, file, URL, function, word, or any other value.} 
    value "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 block with result and new position.}
]