How do you use templates in D?

Graham Fawcett fawcett at uwindsor.ca
Tue Oct 18 11:55:28 PDT 2011


On Tue, 18 Oct 2011 14:28:59 -0400, Andrew Pennebaker wrote:


> Now I'm curious: How can I pass and accept a collection of lambdas? The
> lambdas will each have different, arbitrary returns types. And how do I
> call a function using a collection of values, something like Lisp's
> (apply f args) ?

Can you give an example of how such a thing would be used? Collection of 
lambdas, I understand; but what would you expect the return type to be?

Graham


More information about the Digitalmars-d mailing list