Hi Norman,

This works the same on all rebols.
Most new rebols get caught by this one.

It is written only once in your program,
that tester should be set to a string,
so it refers always to the same string.

Do this in the console:
        source testing
        testing
        source testing

Setting a word to a string in the console
is different, because the string is new
for each line that you enter.

The solution is to put

        tester: copy ""

in your function.

-Anton.

> >>testing: func [ test-size [ integer! ]
> [                    /local tester
> [    ] [
> [                    tester: ""
> [                    loop test-size [ insert tester " A " ]
> [                    tester
> [    ]
> >>
> >>testing 5
> == " A  A  A  A  A "
> >>testing 5
> == " A  A  A  A  A  A  A  A  A  A "
> >>testing 5
> == " A  A  A  A  A  A  A  A  A  A  A  A  A  A  A "
> 
> 
> 
> I would expect, because of tester: "", that everytime the function gets
> executed and the /local tester is set to "" by tester: ""
> ..which it does not??..or sould it again be me ;-) Shoot me please ;-)

> Norman.


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to