[REBOL] Re: to-path newline problem?
From: lmecir:mbox:vol:cz at: 14-Aug-2001 7:53
Hi,
> Well, it certainly defies my notion of EQUAL? to say that
> one can have two values which are equal but MOLD unequally!
>
> What's next? Do we have to add another function to our
> user.r files ...
>
> really-and-truly-equal: func [:x :y] [
> to-logic all [
> equal? x y
> equal? mold x mold y
> ]
> ]
>
> >> really-and-truly-equal :bp :ubp
> == false
>
> ... and, of course, test with all possible datatypes as
> arguments (and equality tests over all possible generic
> transformations) to make sure we don't need another phrase
> in the ALL block! ;-)
>
Some comments:
words behave the same way:
alias 'a "aa"
equal? 'a 'aa ; == true
equal? mold 'a mold 'aa ; == false
another example:
equal? "a" "A" ; == true
equal? first "a" first "A" ; == false
Cheers
Ladislav