Russell Lewis wrote:
Walter Bright wrote:
tama wrote:
I tested following code.
writefln(3 * 4);
This code doesn't work in the first place:-<
Yes, that's one of the breaking changes in the new phobos2. writefln
expects its first argument to be a format string.
If it isn't, use writeln instead.
I just hit the same breakage. :(
Since the compiler can detect this situation statically, shouldn't
Phobos just statically redirect the call to writeln() ?
It did for a while. For cleanliness purposes, I thought it was about
time to eliminate that. Also, extraneous arguments passed to writef will
be ignored, not printed with default formatting.
Andrei