wrapping functions with variadic-parameter wrappers

Jonathan M Davis jmdavisProg at gmx.com
Wed Dec 5 22:02:40 PST 2012


On Wednesday, December 05, 2012 19:40:44 Gor Gyolchanyan wrote:
> A function with variadic template parameters is just a function which takes
> a set of compile-time known parameters.
> My goal is to have a non-template function taking variadic parameters.
> 
> long bar(...)
> {
>     return foo(...);
> }
> 
> This is necessary to be able to pass variables to functions without knowing
> the type of the functions.

Then read the section on variadic functions and pick which type works best for 
you: http://dlang.org/function.html

- Jonathan M Davis


P.S. Please stop top posting. It's generally considered rude in lists like 
this.


More information about the Digitalmars-d mailing list