http://d.puremagic.com/issues/show_bug.cgi?id=7620
Summary: format has different output compared to writef Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2012-03-01 09:58:29 PST --- import std.string; import std.stdio; enum Foo { foo, bar } void main() { Foo foo; writefln("%s", foo); writeln(format("%s", foo)); } Prints: foo 0 I really think these two should be in sync with each other. It's hard to switch from writef debugging to log-based debugging when writef does one thing and format() does another. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------