[dmd-beta] D 2.062 beta
kenji hara
k.hara.pg at gmail.com
Sat Feb 9 01:03:53 PST 2013
2013/2/9 Nick Sabalausky <bus_dmdbeta at semitwist.com>
> On Fri, 8 Feb 2013 18:25:27 -0500
> Nick Sabalausky <bus_dmdbeta at semitwist.com> wrote:
> One of the problems turned out to be the following, which I'm guessing
> is probably intentional?:
>
> import std.stdio;
>
> struct Foo
> {
> string toString()
> {
> return "hello";
> }
> }
>
> void main()
> {
> const f = Foo();
>
> // In 2.061 and up, this outputs "const(Foo)()"
> // instead of "hellO". A fixed bug?
> writeln(f);
> }
>
This behavior (formatting const Foo object by writeln) is at least from
2.058.
The result of const Foo object formatting by std.string.format is changed
from 2.061, to make it consistent with the result by writeln.
Kenji Hara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20130209/13d2cf74/attachment.html>
More information about the dmd-beta
mailing list