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

[REBOL] Re: On mutability and sameness

From: lmecir:mbox:vol:cz at: 14-Jun-2001 9:00

Hi Joel, your posts are thought-provoking as always. :-) ...snip...
> It seems to me that "capable of having one part changed > without affecting the remaining parts" is a pretty simple > definition. That's the one I use,
...snip... I will "play" with your definition. My plan is to get a Special Rebol word: word-root: "pi" block: to block! word-root ; == [pi] special? first block ; == true ; now I would like to make a change ; that wouldn't change the Root attribute of the word, ; but changes its Context attribute: bind block 'system ; == [pi] ; I succeeded to leave the root of the word unchanged ; did I succeed to change the Context of the word? special? first block ; == false How does your definition apply to this case? Regards Ladislav just in case you wanted to play with it too, here is the SPECIAL? function: special?: func [ {determines, if a Word is a Special Word} word [any-word!] ] [ error? try [error? get/any :word] ]