Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] load, contexts and binding

From: robert::muench::robertmuench::de at: 17-Sep-2001 19:29

Hi, I'm just a bit confused, maybe someone can help me: USAGE: LOAD source /header /next /library /markup /all DESCRIPTION: Loads a file, URL, or string. Binds words to global context. LOAD is a native value. ARGUMENTS: source -- (Type: file url string any-block binary) REFINEMENTS: /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. This says that the words are bind to the global context. I have a variable 'bla with value "bla is ok!" at the global context. The file I load has just one line: bla: "bla is great!" and somewhere in my script (not at the global level) I have: load myfile But after this 'bla is still "bla is ok!" and not "bla is great!". Why this? I expected load to bind 'bla to global context and therefor change the old definition. Robert