Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: R: Mutability and sameness - a new puzzle

From: g:santilli:tiscalinet:it at: 22-Jul-2001 12:07

Hello Romano! On 22-Lug-01, you wrote: RT> Index, indeed, is not a propriety of values but a propriety RT> of words. In this case, clearing "a" hides this propriety and Actually, it is a property of series values. Words just have the ability to refer to other values (whatever they are). Proof:
>> series: [a b c d]
== [a b c d]
>> blk: reduce [series skip series 2]
== [[a b c d] [c d]]
>> head blk/2
== [a b c d] RT> Another thing: if you make a different binding, two word RT> which have the same value can result in different value. Because they don't refer to the same value! Two words with the same spelling but with a different binding are two different word! values. They can refer to the same REBOL value or they can refer to two different values, just like any other couple of different word! values. RT> same? reduce bind [get/any 'a] in o 'a reduce bind [get/any RT> 'a] 'system;=false BTW, it's simpler this way: same? get/any in o 'a get/any in system/words 'a RT> The value of a is not identical to value of a. :-) Of course not, You are comparing two different values; the fact that they are referred to by two words that happen to have the same spelling is irrelevant. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/