December 01, 2014
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #8 from hsteoh@quickfur.ath.cx ---
It looks like a compiler bug, in both cases the type returned by schwartzSort is exactly the same, but somehow the compiler treats it differently.

--
December 01, 2014
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #9 from bearophile_hugs@eml.cc ---
(In reply to hsteoh from comment #8)
> It looks like a compiler bug, in both cases the type returned by schwartzSort is exactly the same, but somehow the compiler treats it differently.

Yes, it looks like a compiler bug worth a new different bug report. But so far it looks not easy to pinpoint. later I'll open a new bug report and I'll try to reduce the problem a little.

--
December 01, 2014
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #10 from hsteoh@quickfur.ath.cx ---
Here's a somewhat reduced case:
-----
void main() {
    import std.algorithm, std.string;

    auto anags =
         ["abc", "def"]
         .map!((a) => a)
         .groupBy!((w1, w2) =>
w1.dup.representation.sort().equal(w2.dup.representation.sort()))
         ;
}
-----

Changing .map!((a) => a) to .map!((string a) => a) fixes the problem.

--
December 01, 2014
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #11 from hsteoh@quickfur.ath.cx ---
P.S. the groupBy predicate can also be simplified to just: .groupBy!((w1, w2)
=> w1 == w2)

--
February 19, 2015
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #12 from github-bugzilla@puremagic.com ---
Commit pushed to 2.067 at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/5986e740873d6af793610381a942df78ab41f137 Merge pull request #2654 from quickfur/issue13595b

--
March 18, 2021
https://issues.dlang.org/show_bug.cgi?id=13595

--- Comment #13 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #7794 " Fix Issue 13595 - added splitWhen" was merged into master:

- 8122718d96167b84e2e073191e9c63766c7d08c0 by Ate Eskola:
  Fix Issue 13595 - Non-amended commit just to trigger the bot as rebasing
didn't work

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

--
1 2
Next ›   Last »