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

[REBOL] Re: [ core ] /local refinement not cleared?!

From: joel:neely:fedex at: 3-Apr-2002 18:30

Hi, Norman, To be brief... No this is not a bug. It has to do with the nature of literal series values in REBOL. Rather than repeat the whole discussion here (this has come up MANY times in the past), let me refer you to a previous essay that I wrote in an attempt to explain this seemingly unintuitive behavior for new REBOL programmers: http://www.escribe.com/internet/rebol/m19482.html (The email talks about a couple of issues, but the specific item you're asking about is dealt with in the latter half of the essay. I sincerely recommend that you read the whole thing, however.) Let me know if that leaves any open questions for you. -jn- [Rebolinth--nodep--dds--nl] wrote:
> ... > > I would expect, because of tester: "", that everytime the > function gets executed and the /local tester is set to "" > by tester: "" > ..which it does not??..
It does not. The value of that "literal string" is changed. -jn- -- ; Joel Neely joeldotneelyatfedexdotcom REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] { | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]