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

[REBOL] Re: Rebol pickling recipes ?

From: rotenca:telvia:it at: 6-Oct-2002 13:27

> BTW, I just found out this curious behavior: > > >> find first system/words to-word "never-defined-this" > == none > >> find first system/words to-word "never-defined-this" > == [never-defined-this] > > which shows that using TO-WORD the word gets added AFTER the > evaluation of that expression. I cannot give an explanation of > this; it might be some kind of side effect of the current > implementation (this is REBOL/View 3-Aug-2002); > Ladislav, Romano, do you have any ideas?
Yes i agree, it is strange. It seems that the word is added to the context only after the current expression ends. The current expression can be a do block and very complex but the word appears loaded only at its end. The strange thing is that the word seems already binded to the global context, but first cannot visualize it. My first conclusions are: 1) first does not show all the words of the global context in every cases. 2) the object system/words is only a representation of the global context and it is updated only when the interpreter conclude an evaluation and before scanning the code block for the next instruction. How i already thought, adding new words to system/words is not a real necessity for Rebol it seems only a facility for the programmer. It seems the same in not beta release of View. --- Ciao Romano