changeset 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 f1877b6be63d
children e1b0c5c74c58
files runtime/internal/genobj.d
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/internal/genobj.d	Fri Apr 17 01:19:03 2009 +0200
+++ b/runtime/internal/genobj.d	Fri Apr 17 02:54:16 2009 +0200
@@ -161,7 +161,7 @@
     //  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 @@
 
         if (flags & 8 && defaultConstructor)
         {
-            defaultConstructor(o);
+            auto ctor = cast(Object function(Object))defaultConstructor;
+            return ctor(o);
         }
         return o;
     }