The problem is NOT with paths! It is the fact that you are trying to GET a word & SET the *same* word, try this:
>> :a: >> :a: ** Syntax Error: Invalid word -- :a: ** Near: (line 1) :a: You see it is the word not the path! Now I was going to give you a miracle cure, but that seems beyond me. Can anyone explain the following: >> a: context [b: 'one] >> b: 'b == b >> set a/:b 'two == two >> a/b == one >> b == b What got set? Any ideas? It appears to me that nothing got set, what do you see? HTH!! Ammon ----- Original Message ----- From: "John R" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 22, 2001 3:14 AM Subject: [REBOL] Re: Newbie query on array indexing > 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. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
