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

[REBOL] Re: Sameness - a pragmatic approach.

From: lmecir:mbox:vol:cz at: 11-Feb-2003 21:14

Hi, Gabriele,
> I don't agree. It's just that some values can have different > textual representations. For example the two equal objects: > > >> a: make object! [a: 1 b: 2] > >> b: make object! [b: 2 a: 1] > >> mold a > == { > make object! [ > a: 1 > b: 2 > ]} > >> mold b > == { > make object! [ > b: 2 > a: 1 > ]} > > are "rendered" differently by mold but are still equal, in the > same way the two words "a" and "aaa" are equal once the alias is > created. > > Regards, > Gabriele.
If you consider A and B equal, are you saying, that the implementation of the EQUAL? function isn't consistent for you, because the EQUAL? function doesn't behave like that? Does the following alias 'a "aaa" equal? 'a 'aaa ; == true while same? 'a 'aaa ; == false look consistent to you then? And why? Ciao -L