Mercurial > projects > ldc
annotate test/mainargs1.d @ 164:a64becf2a702 trunk
[svn r180] Fixed complex negation, and tango.math.Math now compiles.
author | lindquist |
---|---|
date | Mon, 05 May 2008 20:28:59 +0200 |
parents | 44a95ac7368a |
children | d9d5d59873d8 |
rev | line source |
---|---|
91 | 1 module mainargs1; |
2 | |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
91
diff
changeset
|
3 extern(C) int printf(char*,...); |
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
91
diff
changeset
|
4 |
91 | 5 void main(string[] args) |
6 { | |
7 foreach(v; args) | |
8 { | |
9 printf("%.*s\n", v.length, v.ptr); | |
10 } | |
11 } |