[REBOL] Re: Sameness - a pragmatic approach.
From: g:santilli:tiscalinet:it at: 11-Feb-2003 12:43
On Tuesday, February 11, 2003, 8:36:19 AM, you wrote:
LM> let's have a block B with length 2. Let's suppose, that our partner tells
LM> us, that his function F has inserted a value V into it. Our task is to find
LM> the position at which the given value is.
I don't think the problem is well defined, unless you are able to
identify V amongst any copy of V. I.e. you would not be able to
solve the problem in this case:
insert tail b v
So we have two choices: either decide that immutable values that
are equal are to be considered the same value (so that both V and
the two values in the block are the same value), or that immutable
values are never the same (so that we have three different "1"s
above). I am inclined for the latter just because it avoids
another layer of abstraction that is not useful for any other
things except the SAME? function.
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r