http://d.puremagic.com/issues/show_bug.cgi?id=7796
Summary: std.typecons.Unique is using writeln without importing
std.stdio
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from simendsjo <[email protected]> 2012-03-29 10:52:51 PDT ---
version(unittest) import core.vararg, std.stdio;
(...)
struct Unique(T)
(...)
this(RefT p)
{
writeln("Unique constructor with rvalue");
_p = p;
}
I guess those writeln's should be removed, or at least wrapped in
version(unittest) blocks (or debug(typecons) or something)
The following cannot even compile, so I guess no one is using it...
import std.typecons;
void main() { Unique!int i = 10; }
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------