comparison test/structinit.d @ 1:c53b6e3fe49a trunk

[svn r5] Initial commit. Most things are very rough.
author lindquist
date Sat, 01 Sep 2007 21:43:27 +0200
parents
children 27b2f40bdb58
comparison
equal deleted inserted replaced
0:a9e71648e74d 1:c53b6e3fe49a
1 module structinit;
2
3 import structinit2;
4
5 struct S
6 {
7 uint ui;
8 float f;
9 long l;
10 real r;
11 }
12
13 S adef;
14
15 S a = { 1, 2.0f };
16 S b = { f:2.0f, l:42 };
17
18 Imp imp;
19
20 void main()
21 {
22 //assert(a == S.init);
23 //assert(b == S(0,3.14f,0,real.init));
24 }