comparison runtime/internal/genobj.d @ 1243:9c2dbbdd34f8

Updated the interal runtime's ClassInfo type to match the one in object.di . Runtime now compiles and runminitest is back to normal except for typeinfo10.d .
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 17 Apr 2009 02:54:16 +0200
parents 6c31351af0c5
children 2badba544b8b
comparison
equal deleted inserted replaced
1242:f1877b6be63d 1243:9c2dbbdd34f8
159 // 2: // has no possible pointers into GC memory 159 // 2: // has no possible pointers into GC memory
160 // 4: // has offTi[] member 160 // 4: // has offTi[] member
161 // 8: // has constructors 161 // 8: // has constructors
162 void* deallocator; 162 void* deallocator;
163 OffsetTypeInfo[] offTi; 163 OffsetTypeInfo[] offTi;
164 void function(Object) defaultConstructor; // default Constructor 164 void* defaultConstructor; // default Constructor
165 165
166 /** 166 /**
167 * Search all modules for ClassInfo corresponding to classname. 167 * Search all modules for ClassInfo corresponding to classname.
168 * Returns: null if not found 168 * Returns: null if not found
169 */ 169 */
194 // initialize it 194 // initialize it
195 (cast(byte*) o)[0 .. init.length] = init[]; 195 (cast(byte*) o)[0 .. init.length] = init[];
196 196
197 if (flags & 8 && defaultConstructor) 197 if (flags & 8 && defaultConstructor)
198 { 198 {
199 defaultConstructor(o); 199 auto ctor = cast(Object function(Object))defaultConstructor;
200 return ctor(o);
200 } 201 }
201 return o; 202 return o;
202 } 203 }
203 } 204 }
204 205