2013/2/9 Nick Sabalausky <[email protected]> > On Fri, 8 Feb 2013 18:25:27 -0500 > Nick Sabalausky <[email protected]> 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
_______________________________________________ dmd-beta mailing list [email protected] http://lists.puremagic.com/mailman/listinfo/dmd-beta
