Thread overview
[Issue 19727] std.algorithm.endsWith fails to compile while startsWith succeeds
[Issue 19727] std.algorithm.endsWith fails where startsWith succeeds
Mar 10, 2019
Timoses
Mar 10, 2019
Seb
Mar 10, 2019
Basile-z
Mar 10, 2019
Basile-z
Mar 11, 2019
Simen Kjaeraas
May 07, 2019
Seb
Mar 21, 2020
Basile-z
Jul 25, 2021
Vlăduț Chicoș
Aug 01, 2021
Dlang Bot
Aug 16, 2021
Dlang Bot
March 10, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

--- Comment #1 from Timoses <timosesu@gmail.com> ---
Workaround:
t.asRelativePath("/folder").to!string

As typeof(t.asRelativePath("/folder")) is ChooseResult!(ByCodeUnitImpl,
Result), it seems to cause the problem!?

--
March 10, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

Seb <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |bootcamp
                 CC|                            |greeenify@gmail.com

--
March 10, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com
           Hardware|x86                         |All
                 OS|Mac OS X                    |All

--
March 10, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|std.algorithm.endsWith      |std.algorithm.endsWith
                   |fails where startsWith      |fails to compile while
                   |succeeds                    |startsWith succeeds

--
March 11, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kjaras@gmail.com

--- Comment #2 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
This boils down to [""].joiner("") not returning a bidirectional range.

--
May 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19727

--- Comment #3 from Seb <greeenify@gmail.com> ---
(In reply to Simen Kjaeraas from comment #2)
> This boils down to [""].joiner("") not returning a bidirectional range.

For reference, here's the previous PR which added bidirectional range support for joiner (without args)

https://github.com/dlang/phobos/pull/6115

Might be a good starting point for future work.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=19727

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
July 25, 2021
https://issues.dlang.org/show_bug.cgi?id=19727

Vlăduț Chicoș <vladut.chicos@gmail.com> changed:

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

--
August 01, 2021
https://issues.dlang.org/show_bug.cgi?id=19727

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
@vladchicos created dlang/phobos pull request #8185 "[DSSv3] Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds" fixing this issue:

- Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds.

https://github.com/dlang/phobos/pull/8185

--
August 16, 2021
https://issues.dlang.org/show_bug.cgi?id=19727

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8185 "[DSSv3] Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds" was merged into master:

- 68dab0e2e522730db8ec3e044a007505fe883793 by vladchicos:
  Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith
succeeds.

https://github.com/dlang/phobos/pull/8185

--