Thread overview
[Issue 9873] New: Built-in tuple should support equality comparison
Apr 04, 2013
Kenji Hara
Apr 04, 2013
Kenji Hara
Apr 04, 2013
Andrej Mitrovic
Apr 04, 2013
Andrej Mitrovic
Apr 05, 2013
Kenji Hara
Apr 05, 2013
Kenji Hara
April 04, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9873

           Summary: Built-in tuple should support equality comparison
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-04 02:42:06 PDT ---
Test case:
----
template Seq(T...) { alias Seq = T; }
struct Tup(T...) { T field; alias field this; }

void main()
{
    auto seq1 = Seq!(1, "hi");
    auto tup1 = Tup!(int, string)(1, "hi");

    assert(Seq!(1, "hi") == Seq!(1, "hi"));
    assert(Seq!(1, "hi") == seq1);
    assert(Seq!(1, "hi") == tup1);

    assert(seq1 == Seq!(1, "hi", [1,2]));  // should be compiler error
}

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


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-04 02:55:31 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1836

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich@gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-04 03:46:04 PDT ---
Will this fix any of these?:

Issue 6582
Issue 9192

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



--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-04 03:46:36 PDT ---
(In reply to comment #2)
> Will this fix any of these?:
> 
> Issue 6582
> Issue 9192

Sorry that should have been:

Issue 6852
Issue 9192

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



--- Comment #4 from github-bugzilla@puremagic.com 2013-04-04 20:41:15 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/7cd887634de72410535ee70a1f7255629122bd27 fix Issue 9873 - Built-in tuple should support equality comparison

https://github.com/D-Programming-Language/dmd/commit/0ae89aaf57506f02c43852ef7758dfcaf4c9095f Merge pull request #1836 from 9rnsr/fix9873

Issue 9873 - Built-in tuple should support equality comparison

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



--- Comment #5 from Kenji Hara <k.hara.pg@gmail.com> 2013-04-04 22:08:40 PDT ---
*** Issue 9192 has been marked as a duplicate of this issue. ***

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


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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