Issue 15321 - std.format.format is impure for doubles
Summary: std.format.format is impure for doubles
Status: RESOLVED DUPLICATE of issue 17628
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Linux
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-12 06:39 UTC by Infiltrator
Modified: 2019-10-22 10:49 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Infiltrator 2015-11-12 06:39:44 UTC
===============
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'
===============
Comment 1 Timoses 2018-09-10 12:10:54 UTC
Duplicate of 17628 ?
Comment 2 berni44 2019-10-22 10:49:01 UTC

*** This issue has been marked as a duplicate of issue 17628 ***