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

[REBOL] Re: Bug of function error?

From: greggirwin:mindspring at: 22-Jul-2002 10:01

Hi Romano, I guess it depends on how you expect things to work. A series stores something like a pointer to the head of the series, and an index into it, right? So, when you remove an element, any other references to that series will have their indexes offset by one from where they were originally. I.e. the series "shrinks" underneath them, but they keep referring to the same index, not the same element, as they were before.
>> a: "ab"
== "ab"
>> b: back tail a
== "b"
>> remove a
== "b"
>> b
== "" --Gregg