annotate dmd/RealExp.d @ 187:b0d41ff5e0df

Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
author Abscissa
date Tue, 07 Jun 2011 23:37:34 -0400
parents e3afd1303184
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
1 module dmd.RealExp;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
2
114
e28b18c23469 added a module dmd.common for commonly used stuff
Trass3r
parents: 73
diff changeset
3 import dmd.common;
129
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
4 import dmd.Complex;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
5 import dmd.Expression;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
6 import dmd.backend.elem;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
7 import dmd.InterState;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
8 import dmd.Type;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
9 import dmd.OutBuffer;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
10 import dmd.Loc;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
11 import dmd.TOK;
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
12 import dmd.Scope;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
13 import dmd.IRState;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
14 import dmd.Type;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
15 import dmd.HdrGenState;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
16 import dmd.Port;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
17 import dmd.TY;
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
18
129
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
19 import dmd.expression.Util;
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
20
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
21 import dmd.backend.dt_t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
22 import dmd.backend.Util;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
23 import dmd.backend.TYM;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
24 import dmd.backend.mTY;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
25
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
26 import std.stdio;
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
27 import std.string;
73
ef02e2e203c2 Updating to dmd2.033
korDen
parents: 72
diff changeset
28
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
29 import dmd.DDMDExtensions;
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
30
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
31 class RealExp : Expression
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
32 {
187
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
33 mixin insertMemberExtension!(typeof(this));
b0d41ff5e0df Added expandability scheme outlined in http://www.dsource.org/forums/viewtopic.php?t=5659&sid=6f2150ff5b0bffcd47512a6a7608d218
Abscissa
parents: 178
diff changeset
34
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
35 real value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
36
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
37 this(Loc loc, real value, Type type)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
38 {
178
e3afd1303184 Many small bugs fixed
korDen
parents: 170
diff changeset
39 register();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
40 super(loc, TOK.TOKfloat64, RealExp.sizeof);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
41 //printf("RealExp.RealExp(%Lg)\n", value);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
42 this.value = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
43 this.type = type;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
44 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
45
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
46 override bool equals(Object o)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
47 {
129
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
48 if (this is o)
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
49 return true;
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
50
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
51 Expression e = cast(Expression)o;
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
52 if (e.op == TOKfloat64) {
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
53 RealExp ne = cast(RealExp)e;
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
54 if (type.toHeadMutable().equals(ne.type.toHeadMutable())) {
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
55 if (RealEquals(value, ne.value)) {
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
56 return true;
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
57 }
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
58 }
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
59 }
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
60
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
61 return false;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
62 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
63
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
64 override Expression semantic(Scope sc)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
65 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
66 if (!type)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
67 type = Type.tfloat64;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
68 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
69 type = type.semantic(loc, sc);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
70 return this;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
71 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
72
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
73 override Expression interpret(InterState istate)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
74 {
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
75 version(LOG)
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
76 writef("RealExp::interpret() %s\n", toChars());
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
77
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
78 return this;
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
79 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
80
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
81 override string toChars()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
82 {
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
83 return format(type.isimaginary() ? "%gi" : "%g", value);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
84 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
85
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
86 override ulong toInteger()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
87 {
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
88 version(IN_GCC)
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
89 return toReal().toInt();
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
90 else
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
91 return cast(ulong) toReal();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
92 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
93
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
94 override ulong toUInteger()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
95 {
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
96 version(IN_GCC)
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
97 return cast(ulong) toReal().toInt();
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
98 else
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
99 return cast(ulong) toReal();
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
100 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
101
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
102 override real toReal()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
103 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
104 return type.isreal() ? value : 0;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
105 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
106
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
107 override real toImaginary()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
108 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
109 return type.isreal() ? 0 : value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
110 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
111
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
112 override Complex!(real) toComplex()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
113 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
114 return Complex!(real)(toReal(), toImaginary());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
115 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
116
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
117 override Expression castTo(Scope sc, Type t)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
118 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
119 Expression e = this;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
120 if (type != t)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
121 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
122 if ((type.isreal() && t.isreal()) ||
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
123 (type.isimaginary() && t.isimaginary())
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
124 )
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
125 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
126 e = copy();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
127 e.type = t;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
128 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
129 else
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
130 e = Expression.castTo(sc, t);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
131 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
132 return e;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
133 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
134
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
135 override int isConst()
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
136 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
137 return 1;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
138 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
139
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
140 override bool isBool(bool result)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
141 {
123
9e39c7de8438 Make dmd test suite compile
korDen
parents: 114
diff changeset
142 return result ? (value != 0) : (value == 0);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
143 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
144
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
145 override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
146 {
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
147 floatToBuffer(buf, type, value);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
148 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
149
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
150 override void toMangleBuffer(OutBuffer buf)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
151 {
129
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
152 buf.writeByte('e');
010eb8f0e18d further work on dmd test suite
korDen
parents: 123
diff changeset
153 realToMangleBuffer(buf, value);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
154 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
155
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
156 override elem* toElem(IRState* irs)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
157 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
158 eve c;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
159 tym_t ty;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
160
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
161 //printf("RealExp.toElem(%p) %s\n", this, toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
162 ///memset(&c, 0, sizeof(c));
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
163 ty = type.toBasetype().totym();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
164 switch (tybasic(ty))
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
165 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
166 case TYfloat:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
167 case TYifloat:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
168 c.Vfloat = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
169 if (Port.isSignallingNan(value)) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
170 std.stdio.writeln("signalling float");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
171 (cast(uint*)&c.Vfloat)[0] &= 0xFFBFFFFFL;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
172 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
173 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
174
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
175 case TYdouble:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
176 case TYidouble:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
177 c.Vdouble = value; // unfortunately, this converts SNAN to QNAN
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
178 if (Port.isSignallingNan(value)) {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
179 std.stdio.writeln("signalling double");
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
180 // Put SNAN back
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
181 (cast(uint*)&c.Vdouble)[1] &= 0xFFF7FFFFL;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
182 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
183 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
184
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
185 case TYldouble:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
186 case TYildouble:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
187 c.Vldouble = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
188 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
189
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
190 default:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
191 print();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
192 ///type.print();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
193 ///type.toBasetype().print();
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
194 printf("ty = %d, tym = %lx\n", type.ty, ty);
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
195 assert(0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
196 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
197 return el_const(ty, &c);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
198 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
199
170
96c0fff6897d more global state cleanup
korDen
parents: 157
diff changeset
200 private enum char[6] zeropad = [0];
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
201
72
2e2a5c3f943a reduced warnings by adding override to the methods
Trass3r
parents: 63
diff changeset
202 override dt_t** toDt(dt_t** pdt)
0
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
203 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
204 float fvalue;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
205 double dvalue;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
206 real evalue;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
207
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
208 //printf("RealExp.toDt(%Lg)\n", value);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
209 switch (type.toBasetype().ty)
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
210 {
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
211 case Tfloat32:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
212 case Timaginary32:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
213 fvalue = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
214 pdt = dtnbytes(pdt,4,cast(char*)&fvalue);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
215 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
216
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
217 case Tfloat64:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
218 case Timaginary64:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
219 dvalue = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
220 pdt = dtnbytes(pdt,8,cast(char*)&dvalue);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
221 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
222
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
223 case Tfloat80:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
224 case Timaginary80:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
225 evalue = value;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
226 pdt = dtnbytes(pdt,REALSIZE - REALPAD,cast(char*)&evalue);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
227 pdt = dtnbytes(pdt,REALPAD,zeropad.ptr);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
228 assert(REALPAD <= zeropad.sizeof);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
229 break;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
230
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
231 default:
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
232 writef("%s\n", toChars());
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
233 ///type.print();
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
234 assert(0);
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
235 }
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
236 return pdt;
10317f0c89a5 Initial commit
korDen
parents:
diff changeset
237 }
148
fe2e1b93e88f phobos compiles now:
Trass3r
parents: 144
diff changeset
238 }