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

--- Comment #0 from 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",

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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to