REBOL3 tracker
  0.9.12 beta
Ticket #0001133 User: anonymous

Project:



rss
TypeBug Statusreviewed Date23-Jul-2009 10:49
Versionalpha 76 CategoryNative Submitted byLadislav
PlatformAll Severityminor Prioritynormal

Summary Object! structural equality not working with percent! or money!
Description The test below yields False, and according to the informations from Brian, it is expected to yield True?
Example code
>> equal? 1 1.0
== true
>> equal? construct [c: 1] construct [c: 1.0]
== true
>> equal? 1 $1
== true
>> equal? construct [c: 1] construct [c: $1]
== false  ; should be true
>> equal? 1 100%
== true
>> equal? construct [c: 1] construct [c: 100%]
== false  ; should be true
; and so on

Assigned ton/a Fixed in- Last Update3-Nov-2010 07:20


Comments
(0001411)
BrianH
23-Jul-2009 15:32

Basically, if two values are EQUAL?, then those values should be EQUAL? as object fields. The same goes for EQUIV? and STRICT-EQUAL?. SAME? shouldn't do structural equivalence.

Example code adjusted accordingly, and ticket changed to a bug.
(0002772)
Ladislav
3-Nov-2010 07:20

in the core-tests suite

Date User Field Action Change
3-Nov-2010 07:20 Ladislav Comment : 0002772 Added -
23-Jul-2009 15:38 BrianH Summary Modified Object! structural equality => Object! structural equality not working with percent! or money!
23-Jul-2009 15:32 BrianH Comment : 0001411 Added -
23-Jul-2009 15:26 BrianH Code Modified -
23-Jul-2009 15:25 BrianH Code Modified -
23-Jul-2009 15:25 BrianH Category Modified Unspecified => Native
23-Jul-2009 15:25 BrianH Status Modified submitted => reviewed
23-Jul-2009 15:25 BrianH Type Modified Note => Bug
23-Jul-2009 10:49 Ladislav Ticket Added -