[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

23
test/b.d Normal file
View File

@@ -0,0 +1,23 @@
module b;
struct S
{
int i;
float[4] f;
}
void main()
{
S s;
int i = s.i;
int* p = &s.i;
*p = 42;
printf("%d == %d\n", *p, s.i);
float* f = &s.f[0];
printf("%f == %f\n", *f, s.f[0]);
*f = 3.1415;
printf("%f == %f\n", *f, s.f[0]);
s.f[0] = 123.456;
printf("%f == %f\n", *f, s.f[0]);
}