[Issue 5871] New: schwartzSort with stable SwapStrategy errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Apr 22 18:50:53 PDT 2011
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: nobody at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list