[REBOL] Re: The truth about scope
From: lmecir:mbox:vol:cz at: 14-Apr-2005 12:17
Gabriele Santilli napsal(a):
....
>The first element of B and the value referred to by 'S are not
>*exactly* the same value. They are two series values, referring to
>the same sequence of elements, but at different positions.
>
>Regards,
> Gabriele.
>
....
my wild guess seems to be correct. Gabriele "combines" values and their
positions in series to obtain a notion of a "series value". It is
possible, although not very practical IMO.
Compare these:
string: "a string"
block: reduce [string string "a string"]
change string "t"
probe block
If we always combined the "position property" (I, convinced by the the
Same? function don't think it is a "part of the value") with other
real
properties of a Rebol value, our ability to reason about Rebol
would have substantially suffered.
Let's try to explain it using the "series value" notion. We know that we
have got three "series values" here, but two of them are somewhat more
related.
If we just use a "value" notion, we may say, that we have got a block
with three "places" (or positions) referring to just two values. Doesn't
it look shorter?
-L