[Issue 15321] New: std.format.format is impure for doubles
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Nov 11 22:39:44 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15321
Issue ID: 15321
Summary: std.format.format is impure for doubles
Product: D
Version: D2
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: lt.infiltrator at gmail.com
===============
import std.format;
void main() pure @safe {
format("%s", 1.0);
}
===============
Compilation output:
test.d(5): Error: pure function 'D main' cannot call impure function
'std.format.format!(char, double).format'
===============
--
More information about the Digitalmars-d-bugs
mailing list