digitalmars.D.bugs - [Issue 5940] New: Cannot create arrays of std.algorithm.map
- d-bugmail puremagic.com (26/26) May 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5940
- d-bugmail puremagic.com (10/10) May 06 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5940
- d-bugmail puremagic.com (29/29) May 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5940
- d-bugmail puremagic.com (12/12) May 09 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5940
http://d.puremagic.com/issues/show_bug.cgi?id=5940 Summary: Cannot create arrays of std.algorithm.map Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: dsimcha yahoo.com --- Comment #0 from David Simcha <dsimcha yahoo.com> 2011-05-06 22:38:00 PDT --- import std.algorithm; void main() { auto stuff = [map!"a * 2"([1, 2, 3]), map!"a * 2"([4, 5, 6]) ]; } Result on DMD 2.053 beta: test9.d(5): Error: cannot have array of inner structs Result -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 06 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5940 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kennytm gmail.com --- Comment #1 from kennytm gmail.com 2011-05-06 23:29:24 PDT --- See as issue 4274. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 06 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5940 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrei metalanguage.com, | |bugzilla digitalmars.com --- Comment #2 from Walter Bright <bugzilla digitalmars.com> 2011-05-08 22:50:11 PDT --- Reduced test case: template map(fun...) { auto map(double[] r) { struct Result { this(double[] input) { } } return Result(r); } } void test() { double[] x; auto a = [map!"a"(x)]; } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 08 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5940 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla digitalmars.com> 2011-05-09 17:59:10 PDT --- I "fixed" this by removing the check for it. I think it's good, but we'll see. https://github.com/D-Programming-Language/dmd/commit/c8f6cda3076b869b3bace306c25210f7ea5a7c33 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 09 2011