www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9873] New: Built-in tuple should support equality comparison

reply d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
next sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 04 2013