comparison tangotests/vararg1.d @ 170:6476da35a0fe trunk

[svn r186] Fixed 'delete this'.
author lindquist
date Tue, 06 May 2008 03:46:43 +0200
parents a8cd9bc1021a
children
comparison
equal deleted inserted replaced
169:2df270e1ba59 170:6476da35a0fe
1 module tangotests.vararg1; 1 module tangotests.vararg1;
2 2
3 import tango.io.Stdout; 3 import tango.stdc.stdio;
4 4
5 void func(int[] arr...) 5 void func(int[] arr...)
6 { 6 {
7 Stdout.formatln("1,2,4,5,6 == {},{},{},{},{}", arr[0],arr[1],arr[2],arr[3],arr[4]); 7 printf("1,2,4,5,6 == %d,%d,%d,%d,%d\n", arr[0],arr[1],arr[2],arr[3],arr[4]);
8 } 8 }
9 9
10 void main() 10 void main()
11 { 11 {
12 func(1,2,4,5,6); 12 func(1,2,4,5,6);