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

[REBOL] Re: Sameness - a pragmatic approach.

From: g:santilli:tiscalinet:it at: 12-Feb-2003 12:33

Hi Joel, On Wednesday, February 12, 2003, 3:49:20 AM, you wrote: JN> >> stampa: :print JN> >> protect 'stampa JN> >> stampa: 13 JN> ** Script Error: Word stampa is protected, cannot modify JN> ** Near: stampa: 13
>> alias 'all "tutto" == tutto >> mold/tutto true == "#[true]"
(Try this without ALIAS... ;-) JN> Either way, doesn't it still take up another word slot in the global JN> dict^H^H^H^Hcontext. If you use ALIAS, you are not using slots in the global context AFAIK. Also, you can translate the PARSE dialect or any other dialect using ALIAS; I don't know any other way to do it. JN> I must be missing something. The question of why ALIASes "must" be JN> immutable isn't answered by the fact that they currently are. That JN> only begs the question again, "But *WHY* are they, and would it JN> break something crucial if that were changed?" You should ask Carl. ;-) I can only make guesses about the current implementation, which a) would break if you could alias a word that has already been added to system/words, since it would mean having the same word twice in system/words (or in any other object that was created and used that word) and b) would break if you could unalias a word since then it would loose its bindings. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r