On 18-Aug-02, Paul Tretter wrote:

> 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.

Yes, but in the example there was no space between the colon and the
string. ie, this works (but probably shouldn't)...

>> this:"a string"
== "a string"
>> ? this
THIS is a string of value: "a string"

while this doesn't...

>> that:none      
== that:none
>> ? that
No information on that (word has no value)

> 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"

A possible conflict with using...

    test/:i:

is that 'i could be interpreted as both a get-word and a set-word.  It
would be useful, but then maybe it'd open a can of words.

> 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.


-- 
Carl Read

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

Reply via email to