digitalmars.D.bugs - [Issue 9648] New: Missing std.random import for std.algorithm.topN?
- d-bugmail puremagic.com (26/26) Mar 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9648
- d-bugmail puremagic.com (11/11) Mar 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9648
- d-bugmail puremagic.com (8/10) Mar 04 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9648
- d-bugmail puremagic.com (11/11) Mar 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9648
- d-bugmail puremagic.com (10/10) Mar 05 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9648
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 puremagic.com ReportedBy: bearophile_hugs eml.cc 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: -------
Mar 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9648 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrej.mitrovich gmail.com 18:48:55 PST --- Yeah it's only imported when -unittest is on, and since Phobos is never tested without -unittest you end up with this situation. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9648Yeah it's only imported when -unittest is on, and since Phobos is never tested without -unittest you end up with this situation.That's a curious bug. I have removed the ending question mark from this issue title. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 04 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9648 Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/337f268cf1e24a25728eea417c4a76a907eec21e Fixes Issue 9648 - Make import to std.random independent of -unittest switch. https://github.com/D-Programming-Language/phobos/commit/f8e26734124c7867486a92133f14ceff1dbac394 Issue 9648 - Make import to std.random independent of -unittest switch -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 05 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9648 Andrei Alexandrescu <andrei erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |andrei erdani.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 05 2013