Mercurial > projects > ldc
diff 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 |
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; }