Here are three more questions:

    1. x/:i  syntax can get but not set values in a block... why?


    2. y: make string! 100   creates a string of length 0... why?
            rebol dictionary entry implies 100 would be length or
            value...

     3. is there any difference between a 1-dimensional array
            and a block or series?



Script started on Mon Nov 29 14:07:07 1999
l
>> x: [ "this" "is" "a" "test" ]
== ["this" "is" "a" "test"]
>> i: 3
== 3
>> x/:i
== "a"

>> ;  but all attempts to set x/:i seem to fail

>> x/:i: "the"
** Syntax Error: Invalid word -- :i:.
** Where: (line 1) x/:i: "the"
>> 
>> 
>> ; y: make string! example from dictionary
>>
>>y: make string! 100
 
== ""
 
>> length? y

 == 0
 

;  but note 

>> z: make string! "this"
 == "this"
 

>> length? z

 == 4
>> ; dictionary seemed to imply 100 would be either
>> ;  length,  storage allocation, or value of y
>> 

Reply via email to