[Issue 7620] New: format has different output compared to writef
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 1 09:58:32 PST 2012
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: nobody at puremagic.com
ReportedBy: andrej.mitrovich at gmail.com
--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at 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: -------
More information about the Digitalmars-d-bugs
mailing list