[Issue 9648] New: Missing std.random import for std.algorithm.topN?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 4 18:43:23 PST 2013


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

           Summary: Missing std.random import for std.algorithm.topN?
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-03-04 18:43:20 PST ---
import std.algorithm: topN;
void main() {
    auto a = [1, 2];
    topN(a, 1);
}



DMD 2.063alpha gives me:

C:\dmd2\src\phobos\std\algorithm.d(7939): Error: undefined identifier uniform
C:\dmd2\src\phobos\std\algorithm.d(7959): Warning: statement is not reachable
temp.d(4): Error: template instance std.algorithm.topN!("a < b",
cast(SwapStrategy)0, int[]) error instantiating

-- 
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