← Back to index
|
Original Bugzilla link
Bug 9873 – Built-in tuple should support equality comparison
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-04T02:42:00Z
Last change time
2013-04-04T22:13:53Z
Keywords
pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2013-04-04T02:42:06Z
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 }
Comment #1
by k.hara.pg — 2013-04-04T02:55:31Z
https://github.com/D-Programming-Language/dmd/pull/1836
Comment #2
by andrej.mitrovich — 2013-04-04T03:46:04Z
Will this fix any of these?: Issue 6582 Issue 9192
Comment #3
by andrej.mitrovich — 2013-04-04T03:46:36Z
(In reply to comment #2) > Will this fix any of these?: > > Issue 6582 > Issue 9192 Sorry that should have been: Issue 6852 Issue 9192
Comment #4
by github-bugzilla — 2013-04-04T20:41:15Z
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
Comment #5
by k.hara.pg — 2013-04-04T22:08:40Z
*** Issue 9192 has been marked as a duplicate of this issue. ***