Hi Brett,

maybe this little func 'll show you what's happening ...

test: func [] [
    s1: "" 
    s2: copy "" 
    append s1 "Hi, I'm changed" 
    append s2 "I'm not ..." 
    source test 
]

>> test
test: func [][
    s1: "Hi, I'm changed" 
    s2: copy "" 
    append s1 "Hi, I'm changed" 
    append s2 "I'm not ..." 
    source test
]

You see, s1 has literally been changed in the source-code, 
s2 has not. (It's one of the Rebol traps everyone has to
fall into once.)


I hope this helps

Ingo
 

Once upon a time [EMAIL PROTECTED] spoketh thus:
> Thanks Allen. That certainly does work.
> 
> But, now I'm confused. Why is that different to what I had? Or, why didn't I
> get a new empty string each call previously?
> 
> Brett.

--  _     .                                _
ingo@)|_ /|  _| _  <We ARE all ONE   www._|_o _   _ ._ _  
www./_|_) |o(_|(/_  We ARE all FREE> ingo@| |(_|o(_)| (_| 
                                             ._|      ._|

Reply via email to