[REBOL] Re: load, contexts and binding
From: rotenca:telvia:it at: 17-Sep-2001 20:30
Hi, Robert
> 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.
It is the opposite: after Load, the word "bla" in the loaded code will be bla is great!
.
If you put a "print bla" at the start of loaded code you'll see it. When you
execute the loaded program, the loaded code will change the global "bla".
So you must do the loaded code to see what you want.
> Robert
---
Ciao
Romano