REBOL Programming/load

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

USAGE:[edit]

LOAD source /header /next /library /markup /all 

DESCRIPTION:[edit]

Loads a file, URL, or string. Binds words to global context.

LOAD is a native value.

ARGUMENTS:[edit]

  • source -- (Type: file url string any-block binary)

REFINEMENTS:[edit]

  • /header -- Includes REBOL header object if present.
  • /next -- Load the next value only. Return block with value and new position.
  • /library -- Force file to be a dynamic library. (Command version)
  • /markup -- Convert HTML and XML to a block of tags and strings.
  • /all -- Load all values. Does not evaluate REBOL header.

SOURCE CODE[edit]

load: native[
    {Loads a file, URL, or string. Binds words to global context.} 
    source [file! url! string! any-block! binary!] 
    /header "Includes REBOL header object if present." 
    /next {Load the next value only. Return block with value and new position.} 
    /library {Force file to be a dynamic library. (Command version)} 
    /markup {Convert HTML and XML to a block of tags and strings.} 
    /all "Load all values. Does not evaluate REBOL header."
]