[svn r5] Initial commit. Most things are very rough.

This commit is contained in:
Tomas Lindquist Olsen
2007-09-01 21:43:27 +02:00
parent 1c23dd2cdc
commit 34699bbb07
227 changed files with 84269 additions and 0 deletions

48
test/d.d Normal file
View File

@@ -0,0 +1,48 @@
module d;
/*
void main()
{
int delegate() dg;
int i = dg();
struct S
{
int i;
long l;
float f;
int func()
{
return 42;
}
}
S s;
auto dg2 = &s.func;
i = dg2();
i = f(dg2, 1);
}
int f(int delegate() dg, int i)
{
return dg() + i;
}
*/
struct S
{
int i;
float f;
int square()
{
return i*i;
}
}
S s;
void main()
{
auto dg = &s.square;
}