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

[REBOL] Re: How do I update a text-list?

From: agem:crosswinds at: 17-Apr-2001 23:57

>From: "alan parman" >> Thanks a bunch, it does indeed work. I could swear that I tried "/
lines"
>> and it didn't work. Was this something that changed in View1.0 from
the
>> experimental versions? > >To my knowledge, no. I find it very easy to make mistakes when using
the
>dialects, like VID. > >What I still don't understand is why /data works with append, as in
the
>following: > >view layout [ >tl: text-list data ["a" "b" "c"] >button "Change List" [ >append tl/data ["new" "values" "for" "you"] >show tl >] >] > >but can't be assigned directly, as in the following: > >;doesn't work >view layout [ >tl: text-list data ["a" "b" "c"] >button "Change List" [ >tl/data: copy ["new" "values" "for" "you"] >show tl >] >]
i think list copies the refercence from data to somewhere else too. then appending to data appends to the same block this second referecne knows, but replacing it lets data point to another, while the internal ref points to the old?
>Oh, well. >--Scott Jones >
Volker