Mercurial > projects > ldc
comparison tangotests/vararg1.d @ 163:a8cd9bc1021a trunk
[svn r179] lots and lots of fixes, much more of tango now compiles/works.
author | lindquist |
---|---|
date | Mon, 05 May 2008 07:36:29 +0200 |
parents | |
children | 6476da35a0fe |
comparison
equal
deleted
inserted
replaced
162:1856c62af24b | 163:a8cd9bc1021a |
---|---|
1 module tangotests.vararg1; | |
2 | |
3 import tango.io.Stdout; | |
4 | |
5 void func(int[] arr...) | |
6 { | |
7 Stdout.formatln("1,2,4,5,6 == {},{},{},{},{}", arr[0],arr[1],arr[2],arr[3],arr[4]); | |
8 } | |
9 | |
10 void main() | |
11 { | |
12 func(1,2,4,5,6); | |
13 } |