Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
March 05, 2013 [Issue 9648] New: Missing std.random import for std.algorithm.topN? | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from bearophile_hugs@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: ------- |
March 05, 2013 [Issue 9648] Missing std.random import for std.algorithm.topN? | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-03-04 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: ------- |
March 05, 2013 [Issue 9648] Missing std.random import for std.algorithm.topN | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=9648 --- Comment #2 from bearophile_hugs@eml.cc 2013-03-04 19:29:31 PST --- (In reply to comment #1) > Yeah 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: ------- |
March 05, 2013 [Issue 9648] Missing std.random import for std.algorithm.topN | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=9648 --- Comment #3 from github-bugzilla@puremagic.com 2013-03-05 06:32:32 PST --- 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 Merge pull request #1187 from AndrejMitrovic/Fix9648 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: ------- |
March 05, 2013 [Issue 9648] Missing std.random import for std.algorithm.topN | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation