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

[REBOL] Re: Sameness - a pragmatic approach.

From: g:santilli:tiscalinet:it at: 11-Feb-2003 12:43

Hi Ladislav, 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: v: 1 b: [1] 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. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r