Template function that accept strings and array of strings
Jacob Carlborg via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 17 05:59:04 PDT 2015
On 2015-07-16 18:49, badlink wrote:
> The method with the variadic function works, but I would have to use
> only one parameter because this doesn't work:
> fun(const(char[])[] a, const(char[])[] b ...)
> and is a bit ugly in my use case ...
I don't think I really understand how you want to use/call the function.
Could you give an example with all the different types you want to call
the function?
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list