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

[REBOL] Re: [refactoring s-c?]

From: lmecir:mbox:vol:cz at: 18-Mar-2002 9:02

Hi Gabriele, exactly as Romano said, your version enlarges (sometimes) the global context (and it is not as generalizable to any-word types). We can use a variable to shorten the source: nonsame: function [ { create a word with equal spelling as the given word has but not the same as the given word } word [word!] {the given word} ] [block] [ first use block: reduce [word] reduce [block] ] ----- Original Message ----- From: "Romano Paolo Tenca" Sent: Monday, March 18, 2002 2:57 AM Subject: [REBOL] Re: [refactoring s-c?] It has the side effect of creating a new global word if the word had been created with to-block. Perhaps a more readable version of s-c? could be created with compose. I use it in my own. --- Ciao Romano