digitalmars.D.bugs - [Issue 5952] New: map(AA.byValue()) problem
- d-bugmail puremagic.com (30/30) May 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5952
- d-bugmail puremagic.com (13/13) May 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5952
- d-bugmail puremagic.com (8/11) May 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5952
- d-bugmail puremagic.com (7/14) May 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5952
http://d.puremagic.com/issues/show_bug.cgi?id=5952 Summary: map(AA.byValue()) problem Product: D Version: unspecified 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 import std.algorithm; void main() { int[int] hash = [1:2, 3:4]; auto vals = hash.byValue(); map!q{a}(vals); // error } The line of code with "map" causes this (DMD 2.053beta): test.d(5): Error: template std.algorithm.map!("a").map(Range) if (isInputRange!(Unqual!(Range))) does not match any function template declaration test.d(5): Error: template std.algorithm.map!("a").map(Range) if (isInputRange!(Unqual!(Range))) cannot deduce template function from argument types !()(int delegate(int delegate(ref int) dg)) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5952 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kennytm gmail.com Resolution| |DUPLICATE That's because byValue returns an opApply delegate, not a range. *** This issue has been marked as a duplicate of issue 4264 *** -- 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=5952That's because byValue returns an opApply delegate, not a range. *** This issue has been marked as a duplicate of issue 4264 ***This is not a duplicate of 4264. Here I am not asking map() to use opApply, I am asking byValue() to be a Range, if possible. -- 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=5952Then it is still a dup of bug 4607. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------That's because byValue returns an opApply delegate, not a range. *** This issue has been marked as a duplicate of issue 4264 ***This is not a duplicate of 4264. Here I am not asking map() to use opApply, I am asking byValue() to be a Range, if possible.
May 08 2011