[Issue 4822] New: Problem with std.stdio.File.writef("%c"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 5 11:20:11 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4822

           Summary: Problem with std.stdio.File.writef("%c"
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2010-09-05 11:19:51 PDT ---
I think this is a correct D2 program:


import std.stdio: File;
void main() {
    auto f = File("test.txt", "w");
    f.writef("%c", 'x');
}


But DMD dmd 2.048 gives at runtime:
std.format.FormatError: std.format integral

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


More information about the Digitalmars-d-bugs mailing list