diff lphobos/internal/objectimpl.d @ 35:3cfcb944304e trunk

[svn r39] * Updated to DMD 1.022 with the exception of: Bugzilla 278: dmd.conf search path doesn't work This fix was causing crashes for me :/ So for it's the old behaviour
author lindquist
date Tue, 09 Oct 2007 06:21:30 +0200
parents c53b6e3fe49a
children 0b9b286b67b6
line wrap: on
line diff
--- a/lphobos/internal/objectimpl.d	Tue Oct 09 02:50:00 2007 +0200
+++ b/lphobos/internal/objectimpl.d	Tue Oct 09 06:21:30 2007 +0200
@@ -109,7 +109,7 @@
     char[] toString()
     {
     //return this.classinfo.name;
-    return "classinfo.name not yet implemented";
+    return "Object.toString: classinfo not yet implemented";
     }
 
     /**
@@ -135,9 +135,9 @@
     // BUG: this prevents a compacting GC from working, needs to be fixed
     //return cast(int)cast(void *)this - cast(int)cast(void *)o;
 
+    assert(0, "need opCmp for class <no classinfo yet>");
+    return 0;
     //throw new Error("need opCmp for class " ~ this.classinfo.name);
-    assert(0);
-    return 0;
     }
 
     /**
@@ -257,7 +257,6 @@
     }
 }
 
-
 /**
  * Information about an interface.
  * A pointer to this appears as the first entry in the interface's vtbl[].
@@ -342,7 +341,6 @@
     TypeInfo ti;    /// TypeInfo for this member
 }
 
-
 /**
  * Runtime type information about a type.
  * Can be retrieved for any type using a
@@ -1024,6 +1022,7 @@
         assert(0);
     }
 }
++/
 
 /**
  * All recoverable exceptions should be derived from class Exception.
@@ -1042,7 +1041,8 @@
 
     void print()
     {
-    printf("%.*s\n", toString());
+    auto str = toString();
+    printf("%.*s\n", str.length, str.ptr);
     }
 
     char[] toString() { return msg; }
@@ -1071,5 +1071,3 @@
 }
 
 //extern (C) int nullext = 0;
-
-+/