digitalmars.D.bugs - [Issue 5383] New: writeln of alias-this matrix
- d-bugmail puremagic.com (52/52) Dec 28 2010 http://d.puremagic.com/issues/show_bug.cgi?id=5383
- d-bugmail puremagic.com (11/11) Oct 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5383
- d-bugmail puremagic.com (12/14) Oct 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5383
http://d.puremagic.com/issues/show_bug.cgi?id=5383
Summary: writeln of alias-this matrix
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody puremagic.com
ReportedBy: bearophile_hugs eml.cc
I think this bug report is about two related but different bugs.
A D2 program:
import std.stdio: writeln;
struct Mat {
int[][] a;
alias a this;
}
void main() {
writeln(Mat());
}
DMD 2.051 prints:
...\dmd\src\phobos\std\format.d(1149): Error: function expected before (), not
popFront(arr.a) of type void
----------------------------
A similar D2 program:
import std.stdio: writeln;
struct Mat {
int[1][1] a;
alias a this;
}
void main() {
writeln(Mat());
}
DMD 2.051 prints:
toString(int[1u][1u]) called from ...\dmd\src\phobos\std\format.d(1432) is
deprecated. Instead you may want to import std.conv and use to!string(x)
instead of toString(x).
toString(int[1u][1u]) called from ...\dmd\src\phobos\std\format.d(1441) is
deprecated. Instead you may want to import std.conv and use to!string(x)
instead of toString(x).
toString(int[1u][1u]) called from ...\dmd\src\phobos\std\format.d(1451) is
deprecated. Instead you may want to import std.conv and use to!string(x)
instead of toString(x).
Mat
(I also suggest to perform a search for "toString(" in format.d)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 28 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5383
hsteoh quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hsteoh quickfur.ath.cx
This bug no longer occurs on git HEAD. Looks like it's been fixed. Should it be
closed?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5383
Kenji Hara <k.hara.pg gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
This bug no longer occurs on git HEAD. Looks like it's been fixed. Should it be
closed?
This is fixed in 2.059.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 27 2012









d-bugmail puremagic.com 