[Issue 4584] std.algorithm.sort fails with SwapStrategy.stable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 22 22:36:34 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=4584



--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-08-22 22:36:30 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > Hit this issue in my project. As part of normalization process codepoints are
> > _stably_ sorted by their canonical combining class.
> > Can dig up a bunch of cases if required but the end result is it rarely works.
> 
> I have seen this:
> 
> https://github.com/blackwhale/phobos/commit/23a1cd0b7fac5b4480fee060e240ddda29bed54e
> 
> So is this problem caused by a DMD bug? If this is true are you able to create
> a minimal example of the bug?

No, it's just that $ works only with arrays (still). And in order for
sort(zip(...)) to work I need this minor fix. The bug with stable sort was
there for 2 years now and I don't realy know the cause.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list