Hi, very strange behavior for local vars... is this a bug or a feature? If
it's a feature what's the rule?
Rebol
[
test: func [ input [block!]]
[
localvar: ""
foreach item input
[
localvar: append localvar to-string item
]
return localvar
]
test2: func [ input [block!]]
[
localvar: make string! 0
foreach item input
[
localvar: append localvar to-string item
]
return localvar
]
print test ["Hi" "this" "is" "a" "test"]
print test ["aa" "bb" "cc" "dd" "ee"]
print test2 ["Hi" "this" "is" "a" "test"]
print test2 ["aa" "bb" "cc" "dd" "ee"]
]
Output:
Hithisisatest
Hithisisatestaabbccddee
Hithisisatest
aabbccddee
I would assume the second output-version for both implementations.
Robert M. Muench, Karlsruhe, Germany
==> ask for PGP public-key <==
When do you want to reboot today?
Use the free portable GUI Library
OpenAmulet from http://www.openip.org