[Issue 6081] Function Literal Templates Don't Work when Nested in Templates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 12 07:29:57 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=6081


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hsteoh at quickfur.ath.cx
         Resolution|                            |WORKSFORME


--- Comment #3 from hsteoh at quickfur.ath.cx 2013-09-12 07:29:56 PDT ---
It would be helpful if code snippets include full compilable code. Anyway,
based on the bug description, I constructed the following test case:

----
import std.algorithm, std.file, std.functional, std.string;
void main() {
    pipe!(readText, splitLines, map!((a) { return a.length; }),
    reduce!max)("Temp.d");
}
----

This code compiles correctly in dmd git HEAD (6a90c4df), so it appears that it
has been fixed.

Please reopen this bug if you still encounter problems. Thanks!

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list