Thread overview
[Issue 18824] [REG 2.080] Tuple's opBinaryRight takes precedence over appending a tuple to an array of tuples
May 04, 2018
Mitu
May 06, 2018
Marco Leise
Dec 14, 2018
Eduard Staniloiu
Dec 18, 2018
Eduard Staniloiu
May 04, 2018
https://issues.dlang.org/show_bug.cgi?id=18824

Mitu <the.mail.of.mi2@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[REG 2.080]                 |[REG 2.080] Tuple's
                   |                            |opBinaryRight takes
                   |                            |precedence over appending a
                   |                            |tuple to an array of tuples

--
May 06, 2018
https://issues.dlang.org/show_bug.cgi?id=18824

Marco Leise <Marco.Leise@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Marco.Leise@gmx.de
          Component|dmd                         |phobos

--- Comment #1 from Marco Leise <Marco.Leise@gmx.de> ---
I think the component should be "Phobos". I met the same issue, but were coming from a ternary operator:

    enum foo() {
        import std.typecons;
        Tuple!(string, size_t)[] parts;
        return true ? parts ~ tuple("abc", size_t.max) : parts;
    }

Message:
test.d(4): Error: incompatible types for (tuple("abc",
18446744073709551615LU).opBinaryRight(parts)) : (parts): Tuple!(Tuple!(string,
ulong)[], string, ulong) and Tuple!(string, ulong)[]

The changelog entries are probably:

  Phobos enhancements
    1. Bugzilla 4591: Concat of std.typecons.Tuples
       https://issues.dlang.org/show_bug.cgi?id=4591
    […]
    5. Bugzilla 14637: Array operations should work on tuples
       https://issues.dlang.org/show_bug.cgi?id=14637

--
December 14, 2018
https://issues.dlang.org/show_bug.cgi?id=18824

Eduard Staniloiu <edi33416@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edi33416@gmail.com
           Assignee|nobody@puremagic.com        |edi33416@gmail.com

--
December 18, 2018
https://issues.dlang.org/show_bug.cgi?id=18824

Eduard Staniloiu <edi33416@gmail.com> changed:

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

--- Comment #2 from Eduard Staniloiu <edi33416@gmail.com> ---
PR - https://github.com/dlang/phobos/pull/6804

--
December 24, 2018
https://issues.dlang.org/show_bug.cgi?id=18824

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/36a9dfaaf225c749c6d5cf90a81656fcfe9d500f Fix Issue 18824 - [REG 2.080] Tuple's opBinaryRight takes precedence over appending a tuple to an array of tuples

https://github.com/dlang/phobos/commit/b962752193b39ca68950876410785658cb2d9fa5 Merge pull request #6804 from edi33416/issue_18824

Fix Issue 18824 - [REG 2.080] Tuple's opBinaryRight takes precedence … merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>

--