[Issue 2194] Variadic parameters of non-array types
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 5 12:06:29 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2194
------- Comment #1 from matti.niemenmaa+dbugzilla at iki.fi 2008-07-05 14:06 -------
The advantage is that, given:
class C { int a, b, c; }
void foo(C c...) {}
You can call either:
foo(new C(1, 2, 3));
foo(1, 2, 3);
For primitive types it is indeed useless, though.
--
More information about the Digitalmars-d-bugs
mailing list