Summary: compose can't take multi arg functions
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from Ellery Newcomer <> 2011-08-12 
13:17:24 PDT ---
unless only passed one function.

Of course, this doesn't make sense for any but the innermost function, e.g.

int f(int){..} 
int g(int){..}
int h(int,int,int){...}

alias compose!(f,g,h) F;
assert(F(x,y,z) == f(g(h(x,y,z))));

This functionality can be trivially added by changing in composeImpl

doIt(E)(E a)


doIt(E...)(E a)

If conserving param modifiers is desired, it would likely take a good deal more

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to