varargs when they're not all the same type?

Andy Valencia dont at spam.me
Thu Mar 14 20:58:21 UTC 2024


On Thursday, 14 March 2024 at 18:05:59 UTC, H. S. Teoh wrote:
> ...
> The best way to do multi-type varags in D is to use templates:
>
> 	import std;
> 	void myFunc(Args...)(Args args) {

Thank you.  The first parenthetical list is of types, is it not?  
I can't find anywhere which says what "type" is inferred for 
"Args..."?  (gdb pretends like "arg" is not a known symbol.)  Is 
it basically a tuple of the suitable type?

Andy



More information about the Digitalmars-d-learn mailing list