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

[REBOL] Re: Why this works ?

From: volker:nitsch:gmai:l at: 24-Nov-2005 15:13

On 11/24/05, Giuseppe Chillemi <> wrote:
> > Hi Giuseppe, > > > There *is* good documentation on copying series, here: > > > > Ciao Anton, > When I find this sentence: > > "The foreach loop moves through a series setting a word or multiple words in > to the values in the series." > > I suppose that the word or multiple words get the value in the block > and not a reference to the value of the block. > > Don't forget I and many other are old type programmers. The > documentation must explicit tell us that a reference is happening because we > think about a copy as the first and only working. >
Good point. We really need a comparison with other languages, because some things are special. Things like this: - In rebol references are values. Series are not, you must reference them. Copies are very explicit in rebol, when they are not mentioned, better expect they do not happen. That is true for functions too, a: [] references the block in the functions code, not a copy of it. Thats why you see all the a: copy[] in code. - series-references contain a reference to a position in a series, not only to the series itself. like a cursor in a text.
> Giuseppe Chillemi > > -- > To unsubscribe from the list, just send an email to > lists at with unsubscribe as the subject. >
-- -Volker Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem. David Wheeler