Thread overview | |||||
---|---|---|---|---|---|
|
August 13, 2010 [Issue 4638] New: Regression: new writeln does not recognize "wstring toString" | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4638 Summary: Regression: new writeln does not recognize "wstring toString" Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody@puremagic.com ReportedBy: lio+bugzilla@lunesu.com --- Comment #0 from Lionello Lunesu <lio+bugzilla@lunesu.com> 2010-08-12 20:38:35 PDT --- In 2.047, a struct could provide a toString that returned a wstring (as opposed to string) and it would get used when passing the struct to writeln. As of 2.048 a toString returning wstring is not detected and the struct's typename is returned instead. toString returning string works fine. Repro: import std.stdio; import std.conv; struct A { wstring toString() { return "blah"; } } void main() { A a; writeln(a); writeln(to!string(a)); writeln(to!wstring(a)); } DMD 2.047: blah blah blah DMD 2.048: A blah blah -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 16, 2010 [Issue 4638] Regression: new writeln does not recognize "wstring toString" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | http://d.puremagic.com/issues/show_bug.cgi?id=4638 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |rsinfu@gmail.com AssignedTo|nobody@puremagic.com |rsinfu@gmail.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 16, 2010 [Issue 4638] Regression: new writeln does not recognize "wstring toString" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Lionello Lunesu | http://d.puremagic.com/issues/show_bug.cgi?id=4638 Shin Fujishiro <rsinfu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #1 from Shin Fujishiro <rsinfu@gmail.com> 2010-11-16 13:06:54 PST --- Fixed: http://www.dsource.org/projects/phobos/changeset/2172 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation