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 17:17

Hi Doc,
> >> bind :z 'system > == unbound-word > >> get z > ** Script Error: unbound-word is not defined in this context > ** Near: get z > > 'to-word seems a good way to create a bounded word! from the unbounded > one, but i see no way to bound the former one to any context...
I do not understand well. Bind take a word and change it to another word bound to an existing context, but only if that word already exist in the context. It can't add a new word to a context. This can be done only for the global context by Load and by make (any)word! There are 2 distint actions: 1) adding a word to a context, 2) bind a word to a context.
> Now about the "curious behaviour", i guess that (first system/words) is > evaluated before (to-word "never-defined-this"), so you get the word > list before the new word is added to global context, that's why you get > 'none the first time and get the word the second time.
You are right, it is only question of evaluation order. So we can be sure that an object is an exact reproduction of internal rebol context. :-) But i always want a get-context for use and function context. :-( --- Ciao Romano