[Issue 3789] Structs members that require non-bitwise comparison not correctly compared

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 3 04:44:49 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3789


Simen Kjaeraas <simen.kjaras at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Version|2.040                       |D2
            Summary|comparing a struct with an  |Structs members that
                   |array member does a bitwise |require non-bitwise
                   |compare                     |comparison not correctly
                   |                            |compared
           Severity|normal                      |major


--- Comment #6 from Simen Kjaeraas <simen.kjaras at gmail.com> 2011-02-03 04:42:24 PST ---
Making this the main bug for erroneous bitwise comparison of structs. There
were at least 4 in total.

List of things that do not work:

floating-point members
array members (including strings)

List of things that do work:

any member that uses bitwise comparison
member structs that have overloaded opEquals

The latter suggests that this should work for floating point numbers and arrays
too.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list