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

           Summary: schwartzSort with stable SwapStrategy errors
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-04-22 18:47:13 PDT ---
This D2 program:


import std.algorithm;
void main() {
    char[] s = "test".dup;
    int[] indexes = [0, 1, 2, 3];
    schwartzSort!((int i){ return s.count(s[i]); }, "b < a",
SwapStrategy.stable)(indexes);
}


With DMD 2.052 gives the error:

...\dmd\src\phobos\std\algorithm.d(6121): Error: undefined identifier __dollar

Once "fixed" that line replacing $ with r.length more successive similar errors
appear.

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

Reply via email to