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: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@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: -------

Reply via email to