Hi Tim,

Thanks for your examples. Sorry if I was not too clear on last post - I did
already check out and understand (I hope) all techniques mentioned by Greg
and Brett and noted the initialisation behaviour with strings, pointers etc.
IMO it would be nice if "unusual" behaviour like this were highlighted in
the Rebol documentation.

My outstanding query was trying to assign a value to an array element using
path syntax with subscript variable. Console session extract below.

Thanks
John

>> arr-test: array 10 ""
== ""
>> loop 10 [append arr-test copy ""]
== [none none none none none none none none none none "" "" "" "" "" "" ""
"" "" ""]

>> arr-test/1: "Entry1"
== ["Entry1" none none none none none none none none none "" "" "" "" "" ""
"" "" ""
 ""]
>> arr-test/3: "Entry3"
== ["Entry1" none "Entry3" none none none none none none none "" "" "" "" ""
"" "" "
" "" ""]
>> n: 3
== 3
>> print arr-test/:n
Entry3
>> arr-test/:n: "AmendedEntry3"
** Syntax Error: Invalid word -- :n:
** Near: (line 1) arr-test/:n: "AmendedEntry3"
>>

----- Original Message -----
From: "Tim Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 4:25 AM
Subject: [REBOL] Re: Newbie query on array indexing


> Hi John
> One method that works well in "harnessing" the power of this mailing list
> is to either:
> copy and paste a contiguous interpreter session into your email.
> OR
> Send a complete script.
> HTH
> --
> Tim Johnson <[EMAIL PROTECTED]>
>        http://www.johnsons-web.com
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

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

Reply via email to