mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-03-16 00:51:49 +01:00
[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:
9
test/mainargs1.d
Normal file
9
test/mainargs1.d
Normal file
@@ -0,0 +1,9 @@
|
||||
module mainargs1;
|
||||
|
||||
void main(string[] args)
|
||||
{
|
||||
foreach(v; args)
|
||||
{
|
||||
printf("%.*s\n", v.length, v.ptr);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user