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

[REBOL] Re: SV: Re: Func, why does it remeber previous data?

From: emptyhead:home:nl at: 11-Nov-2000 13:49

You forgot to copy the data_to_find binary value. Replace the probe data_to_find: #{ACDC} with data_to_find: copy #{ACDC} The append changes the series!... an example:
>> a: [ b: #{ACDC} append b #{a0} ]
== [b: #{ACDC} append b #{A0}]
>> do a
== #{ACDCA0}
>> a
== [b: #{ACDCA0} append b #{A0}]
>>
If you do not copy the series your will change your own code.
>> a: [ b: #{ACDC} append copy b #{a0} ]
== [b: #{ACDC} append copy b #{A0}]
>> do a
== #{ACDCA0}
>> a
== [b: #{ACDC} append copy b #{A0}]
>>
That should fix it... Daan Oosterveld [Micael--Gullmes--telenordia--se] schreef: