[REBOL] Re: Puzzle with FIND and SELECT
From: joel:neely:fedex at: 10-Feb-2003 10:56
Hi, Ladislav,
Ladislav Mecir wrote:
> ...
> > - Why do we need SAME? at all? One use is to distinguish mutable
> > values so that one can determine in advance whether a change via
> > one "access path" will affect what is visible via another?
>
> SAME? is not useful for this purpose. The reason is as follows:
> you can find two values that clearly aren't the same, like e.g.
>
> a: [1 2]
> b: next a
>
I didn't mean that SAME? was the whole answer, but that it can be
used to obtain the answer. To use your example:
>> a: [1 2] == [1 2]
>> b: next a == [2]
as you point out...
>> same? a b == false
but...
>> same? head a head b == true
which is all I meant.
-jn-
--
----------------------------------------------------------------------
Joel Neely joelDOTneelyATfedexDOTcom 901-263-4446
Atlanta, Ga. - Scientists at the Centers for Disease Control today
confirmed that hoof-and-mouth disease cannot be spread by Microsoft's
Outlook email application, believed to be the first time the program
has ever failed to propagate a major virus.