[phobos] Changing the semantics of std.string.format

Don Clugston dclugston at googlemail.com
Thu Mar 3 01:22:10 PST 2011


On 3 March 2011 09:53, Lars Tandle Kyllingstad <lars at kyllingen.net> wrote:
> I've looked into issue 5687, 'std.string.format() error with "%a"'.
>
>    http://d.puremagic.com/issues/show_bug.cgi?id=5687
>
> In short, the problem is that format() calls std.format.doFormat(),
> which converts all floating-point numbers internally to 80-bit reals.
> For "%a", this is most definitely *not* what you want.

No, that's perfectly fine. Actually, it's a Linux-specific %a bug.

OTOH what you're proposing may be a good idea; it just has NOTHING to
do with that bug!


More information about the phobos mailing list