"append" only wants two arguments - you are supplying three. But do you
really want to append, or just assign a value?
If I understand right, you want to dynamically create words and assign a
(changing) value to them. If you want to append, just replace the "set"
(below) with "append".
foreach line page [
count: count + 1
set to-word rejoin ["linewords" count] line
]
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 07, 2000 1:18 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] dynamic word names
I would like to append a word whose name changes with each pass of a
foreach statement.
The following does not work.
count: make integer! 0
foreach line page [
count: count + 1
append linenumber count line
]
What I am hoping for is to assign the value of each "line" word to a series
of
words named "linewords1" and "linewords2" and "linewords3" etc. How can I
accomplish this?
Thanks.
-Ryan