[Issue 3531] 'curry' doesn't work for templated functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 20 08:17:10 PST 2009


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



--- Comment #2 from Max Samukha <samukha at voliacable.com> 2009-11-20 08:17:09 PST ---
Just want to note that it is not __traits(compiles) that makes the example
work, but the function being wrapped in the delegate literal. This works as
well:

auto curry(T)(T arg2) if (is(typeof( { fun(arg, T.init); } )))

-- 
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