digitalmars.D.bugs - [Issue 5576] New: Problem with map() that yields Tuples
- d-bugmail puremagic.com (28/28) Feb 14 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5576
- d-bugmail puremagic.com (10/10) Oct 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5576
- d-bugmail puremagic.com (11/11) Oct 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=5576
http://d.puremagic.com/issues/show_bug.cgi?id=5576 Summary: Problem with map() that yields Tuples Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2011-02-14 11:15:51 PST --- import std.algorithm, std.typecons; struct Foo1 { int x; } alias Tuple!(int) Foo2; void main() { auto m1 = map!((int x){ return Foo1(x); })([1, 2]); // OK auto m2 = map!((x){ return Foo2(x); })([1, 2]); // OK auto m3 = map!((int x){ return Foo2(x); })([1, 2]); // Error } DMD 2.051 prints this error message that I don't understand: test.d(7): Error: cannot implicitly convert expression (0) of type int to Tuple!(int) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 14 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5576 hsteoh quickfur.ath.cx changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh quickfur.ath.cx --- Comment #2 from hsteoh quickfur.ath.cx 2012-10-27 10:39:41 PDT --- Works fine on git HEAD, Linux 64-bit. -- 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=5576 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from bearophile_hugs eml.cc 2012-10-27 17:35:58 PDT --- Closed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 27 2012