Thread overview
[Issue 4450] New: writefln throws unexpected runtime error
Jul 12, 2010
Roel
Jul 15, 2010
Roel
July 12, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4450

           Summary: writefln throws unexpected runtime error
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: sean@invisibleduck.org
        ReportedBy: roel.mathys@gmail.com


--- Comment #0 from Roel <roel.mathys@gmail.com> 2010-07-12 13:58:29 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4450


Roel <roel.mathys@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


--- Comment #1 from Roel <roel.mathys@gmail.com> 2010-07-15 03:22:06 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4450


Andrei Alexandrescu <andrei@metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei@metalanguage.com


--- Comment #2 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-07-15 09:58:53 PDT ---
I added the erratum: http://www.erdani.com/tdpl/errata/.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------