[REBOL] Re: Unwanted Duplicate Data in Text Fields
From: SunandaDH:aol at: 7-Nov-2003 15:55
> But why is the text that is entered into one text field automatically
> propagated to all of the other empty fields in every record without
> explicitly specifying it, i.e., after entering the text, I never insert the
> value in the 3rd text field into db/1/3 and certainly not into db/1/4,
> db/2/3, db/2/4, etc.?
It's a design feature of REBOL that trips everyone up at first because it is
so unlike most of the other languages we've ever used. I wrote off several
hours once to debugging the same problem.
Even local "variables" have this sort of "persistence" to them. Watch what
these strings do:
a-func: func [data /local var1 var2 var3][
var3: copy ""
append var1 data
append var2 data
append var3 data
print [var1 "--" var2 "--" var3]
loop 5 [a-func random/secure "ABCDE"]
One day, you'll thank Carl for this feature,