Bug 7796 – std.typecons.Unique is using writeln without importing std.stdio
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-29T10:52:00Z
Last change time
2012-05-31T04:06:53Z
Assigned to
nobody
Creator
simendsjo
Comments
Comment #0 by simendsjo — 2012-03-29T10:52:51Z
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; }
Comment #1 by github-bugzilla — 2012-05-23T09:24:30Z