How can you read and understand the source of *naryFun in functional.d?
andrej.mitrovich at gmail.com
Sun Jan 30 08:29:56 PST 2011
On 1/30/11, Philippe Sigaud <philippe.sigaud at gmail.com> wrote:
> If anyone is interested, I coded a n-args version of
> unaryFun/binaryFun called naryFun. If you use 'a', 'b', ... as args
> names, it can automatically determine the templated function arity.
Is this going in the next release? There's an nary template in
std.functional right now but it's commented out. It does look like an
older attempt that probably didn't work.
More information about the Digitalmars-d-learn