← Back to index
|
Original Bugzilla link
Bug 4450 – writefln throws unexpected runtime error
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-07-12T13:58:00Z
Last change time
2010-07-15T09:58:53Z
Assigned to
sean
Creator
roel.mathys
Comments
Comment #0
by roel.mathys — 2010-07-12T13:58:29Z
The following code compiles fine, but gives the following "std.format.FormatError: std.format integral" when ran. import std.stdio; void main() { writefln ("%i", 4); } DMD v2.047 Regards, Roel
Comment #1
by roel.mathys — 2010-07-15T03:22:06Z
I see now on
http://www.digitalmars.com/d/2.0/phobos/std_format.html#format-string
that %i is not a valid formatting option. The %i is mentioned in the TDPL book on page 5.
Comment #2
by andrei — 2010-07-15T09:58:53Z
I added the erratum:
http://www.erdani.com/tdpl/errata/.