[Issue 5042] format("%s") of struct without toString

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 24 18:55:35 PDT 2012


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



--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2012-04-24 18:56:37 PDT ---
(In reply to comment #3)
> In dmd 2.060alpha:
> 
[snip]
> 
> If it's isn't a problem in just my DMD, then I'll reopen this issue...

std.string.format function only support TypeInfo based formatting.
Then it never supports raw field based, and alias this based formatting.

As discussed here:
https://github.com/D-Programming-Language/phobos/pull/231

For the backward compatibility, we cannot change the implementation of
std.string.format function. Instead, in 2.060head, we add a xformat function
that uses std.format.formattedWrite function as the implementation.

After all, you should use std.string.xformat instead of std.string.format in
2.060 and later.

-- 
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