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 .
This commit is contained in:
Tomas Lindquist Olsen
2009-04-17 02:54:16 +02:00
parent 3d9598d854
commit ea2279b11a

View File

@@ -161,7 +161,7 @@ class ClassInfo : Object
// 8: // has constructors
void* deallocator;
OffsetTypeInfo[] offTi;
void function(Object) defaultConstructor; // default Constructor
void* defaultConstructor; // default Constructor
/**
* Search all modules for ClassInfo corresponding to classname.
@@ -196,7 +196,8 @@ class ClassInfo : Object
if (flags & 8 && defaultConstructor)
{
defaultConstructor(o);
auto ctor = cast(Object function(Object))defaultConstructor;
return ctor(o);
}
return o;
}