Pierre Johnson napsal(a)

...snip...
>> you encountered one "unusual" REBOL property - aliases. See
>>     
> this:
>   
>>     alias 'a "aa"
>>     a: 4
>>     aa ; == 4
>>     aa: 5
>>     a ; == 5
>>     
>
> That is exactly what should happen! (because)
>
> alias 'a "aa"
>
>   
>> The same does not hold for any pair of words referring to the
>>     
> same value (which we don't call aliases in REBOL)
>
> 1. Who is "we"?
>   
REBOL users, I guess. You should probably get used to it as to a REBOL 
feature. A word can refer to any value. Two different words can refer to 
the same value at one moment and to two distinct values at another 
moment. That is not a reason to call the words aliases, unfortunately 
(maybe a terminology problem?). See 
http://www.rebol.com/docs/words/walias.html .
> 2. How can any pair of words refer to the same definitional
> ("value") and not have the status of "alias"?
>   
The fact is, that you can compare two kinds of things in REBOL (as 
opposed to other languages):

1) compare the values - two distinct words (variables) can refer to one 
REBOL value sometimes:

    a: "a string"
    b: a
    ; this shows, that both variables refer to the same REBOL value:
    same? a b ; == true

2) compare the variables (notice that words are REBOL values too) - two 
variables can be equal. (Note that equal variables aren't able to refer 
to distinct values.)

    ; this shows, that the variables are distinct:
    equal? 'a 'b ; == false

...snip...
> Two words are aliases if and only if their definitionals are
> equal AND they point to the exact same (one and only one)
> definitional existing within REBOL controlled memory.
>   
...snip...


Your definition sounds logical, but it differs from the above. The only 
suggestion is to get used to it.

-L

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to