[svn r95] added support for mains like:

T main(string[] args)
fixed a bug with slicing a pointer that is an argument with no storage
This commit is contained in:
Tomas Lindquist Olsen
2007-11-07 04:52:56 +01:00
parent 4a5659c04e
commit ea18cd8e75
5 changed files with 77 additions and 3 deletions

9
test/mainargs1.d Normal file
View File

@@ -0,0 +1,9 @@
module mainargs1;
void main(string[] args)
{
foreach(v; args)
{
printf("%.*s\n", v.length, v.ptr);
}
}