Bug 3099 – std.metastrings.Format example can not compile
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-06-27T02:18:00Z
Last change time
2015-06-09T01:27:59Z
Assigned to
andrei
Creator
samhu.samhu
Comments
Comment #0 by samhu.samhu — 2009-06-27T02:18:45Z
Below code snippet is from std.metastrings:
string s=Format!("Arg %s=%s","foo",27);
writefln(s);// "Arg foo = 27"
can't compile,error msg:
testFormat.d(30): Error: cannot implicitly convert expression ("Arg %s=%sfoo27") of type const(char[]) to immutable(char)[]
Not sure whether this is a bug.