Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
May 19, 2009 [Issue 3009] New: format.d(2072) uses deprecated function | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3009 Summary: format.d(2072) uses deprecated function Product: D Version: 2.030 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: rinick@gmail.com testcase: ------------------------------ import std.stdio; struct A(T) { T[] datas; alias datas this; } void main() { A!uint a; writeln(a); } ------------------------------ compiler warning: toString(uint[]) called from D:\dmd\dmd\windows\bin\..\..\src\phobos\std\format.d(2072) is deprecated. Instead you may want to import std.conv and use to!string(x) instead of toString(x). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2009 [Issue 3009] format.d(2072) uses deprecated function | ||||
---|---|---|---|---|
| ||||
Posted in reply to rinick@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=3009 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |andrei@metalanguage.com AssignedTo|bugzilla@digitalmars.com |andrei@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 28, 2009 [Issue 3009] format.d(2072) uses deprecated function | ||||
---|---|---|---|---|
| ||||
Posted in reply to rinick@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=3009 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei@metalanguage.com |bugzilla@digitalmars.com --- Comment #1 from Andrei Alexandrescu <andrei@metalanguage.com> 2009-08-27 21:51:07 PDT --- This is very odd. If I comment out toString, the example compiles and runs. There must be something odd going on in the compiler. Deferring to Walter. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 26, 2010 [Issue 3009] format.d(2072) uses deprecated function | ||||
---|---|---|---|---|
| ||||
Posted in reply to rinick@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=3009 Andrei Alexandrescu <andrei@metalanguage.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|andrei@metalanguage.com |bugzilla@digitalmars.com --- Comment #2 from Andrei Alexandrescu <andrei@metalanguage.com> 2010-09-26 16:02:56 PDT --- I'm reassigning this to Walter. It's a failure of alias this. Reduced test case: import std.stdio; struct A(T) { T[] datas; alias datas this; } void main() { uint[] x; x.popFront(); A!uint a; writeln(a); } What should happen is that a.popFront() should forward to a.datas.popFront(), which in turn rewrites itself into popFront(a.datas). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 27, 2011 [Issue 3009] format.d(2072) uses deprecated function | ||||
---|---|---|---|---|
| ||||
Posted in reply to rinick@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=3009 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |yebblies@gmail.com Resolution| |WORKSFORME --- Comment #3 from yebblies <yebblies@gmail.com> 2011-08-28 04:03:28 EST --- The first test case now compiles without error, and the second does too (once an import to std.array is added). -- 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