[phobos] Changing the semantics of std.string.format
Lars Tandle Kyllingstad
lars at kyllingen.net
Thu Mar 3 02:11:29 PST 2011
On Thu, 2011-03-03 at 10:22 +0100, Don Clugston wrote:
> 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!
I stand corrected.
I'd still like to rewrite format(), though. :)
-Lars
More information about the phobos
mailing list