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


Lars T. Kyllingstad <bugzi...@kyllingen.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzi...@kyllingen.net


--- Comment #1 from Lars T. Kyllingstad <bugzi...@kyllingen.net> 2009-11-20 
06:29:58 PST ---
The is(typeof(...)) constraint can be replaced with __traits(compiles, ...).
This works:

    auto curry(T)(T arg2) if (__traits(compiles, { fun(arg, T.init); }))
    {
        return fun(arg, arg2);
    }

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

Reply via email to