The first part you referenced is not a problem.  We often set multiple
values this way - such as:

this: that: none

This way everything can be set to none.

Gotta be careful with this though as some datatypes have problems doing
this.

And for your second example the test:i would be getting the value at index
'i and not setting do to the placement of the ":".

try:

change test/:i "BBBB"


Paul Tretter

----- Original Message -----
From: "Andrew Martin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 17, 2002 6:46 PM
Subject: [REBOL] URL & setword bugs


> Joel wrote:
> > Does anybody besides me think that this should be reported as a bug?
>
> As shown by Joel on the mailing list:
> >> type? garbage:"trash"
> == string!
> >> foo: garbage:"trash"
> == "trash"
> >> foo
> == "trash"
>
> I feel that garbage:"trash" should result in a syntax error.
>
> And:
>
> >> test: ["a" "b" "c" "d"]
> == ["a" "b" "c" "d"]
> >> i: 2
> == 2
> >> test/:i: "BBBB"
> ** Syntax Error: Invalid word -- :i:
> ** Near: (line 1) test/:i: "BBBB"
>
> I feel that test/2 should now be "BBBB" instead of the syntax error.
>
> After all the following works:
> >> test
> == ["a" "b" "c" "d"]
> >> test/:i/1: #"z"
> == "z"
> >> test
> == ["a" "z" "c" "d"]
>
> I've notified feedback of this problem.
>
> Andrew Martin
> ICQ: 26227169 http://valley.150m.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