1 void(string...) print = #1;
2 string(float) ftos = #2;
4 void nbva(float a, string...count) {
5 print("You gave me ", ftos(count), " additional parameters\n");
6 print("First: ", ...(0, string), "\n");
7 print("You chose: ", ...(a, string), "\n");
8 for (a = 0; a < count; ++a)
9 print("Vararg ", ftos(a), " = ", ...(a, string), "\n");
12 var void unstable(...);
13 void stability(float a, float b, ...count)
15 print("Got: ", ftos(count), "\n");
19 nbva(1, "Hello", "You", "There");
20 stability(1, 2, 3, 4, 5);
22 unstable(1, 2, 3, 4, 5);