digitalmars.D.bugs - [Issue 6429] New: Nested function error in reduce
- d-bugmail puremagic.com (32/32) Aug 02 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6429
- d-bugmail puremagic.com (13/13) Aug 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6429
- d-bugmail puremagic.com (12/12) Aug 04 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6429
- d-bugmail puremagic.com (11/11) Apr 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6429
- d-bugmail puremagic.com (11/11) Oct 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6429
http://d.puremagic.com/issues/show_bug.cgi?id=6429 Summary: Nested function error in reduce Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com 07:27:56 PDT --- import std.algorithm; alias reduce!((a, b){ return 1; }) foo; void main() { foo([1, 2, 3]); } Error: delegate test.__dgliteral1!(int,int).__dgliteral1 is a nested function and cannot be accessed from reduce This will work however: import std.algorithm; void main() { alias reduce!((a, b){ return 1; }) foo; foo([1, 2, 3]); } I can't tell whether this is a bug or something subtle that I don't understand. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 02 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6429 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED 12:58:48 PDT --- https://github.com/D-Programming-Language/dmd/commit/89c261bbf07842e05dc8a58a7e7bfcdcc5a406b8 https://github.com/D-Programming-Language/dmd/commit/9487b3ddbb1498afa2dc76f41ad20f4b88d73889 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6429 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | 13:11:37 PDT --- I think you accidentally a number and referenced 6429 instead of 6419. That pull doesn't fix this issue. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Aug 04 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6429 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com PDT --- The first example also fails with 2.059 Win32... unless using the -inline flag ! -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6429 Andrej Mitrovic <andrej.mitrovich gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED 14:18:36 PDT --- Seems fixed in 2.060. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 04 2012