Thread overview
[Issue 3830] New: opCmp among boxer arrays
[Issue 3830] opCmp among variant arrays
Feb 02, 2013
Andrej Mitrovic
February 18, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3830

           Summary: opCmp among boxer arrays
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2010-02-18 12:48:52 PST ---
opCmp among box arrays seems wrong, this asserts:

import std.boxer;
void main() {
    auto a1 = boxArray(10, 45.4);
    auto a2 = boxArray(10, 45.2);
    assert(a1 > a2);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=3830


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei@metalanguage.com
         AssignedTo|nobody@puremagic.com        |andrei@metalanguage.com


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3830


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com
           Platform|Other                       |All
            Version|2.040                       |D2
            Summary|opCmp among boxer arrays    |opCmp among variant arrays
         OS/Version|Windows                     |All


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-02-01 17:05:27 PST ---
std.boxer is gone, however Variant has the same problems:

import std.variant;

void main()
{
    auto a1 = variantArray(10, 45.4);
    auto a2 = variantArray(10, 45.2);
    assert(a1 > a2);  // fails
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3830



--- Comment #2 from Andrei Alexandrescu <andrei@erdani.com> 2013-02-26 09:17:00 PST ---
I'm unclear whether ordering on Variant arrays is meaningful. One approach is lexicographical compare, but it's not the only one.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=3830


bearophile_hugs@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor


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