[svn r130] fixed #28

This commit is contained in:
Tomas Lindquist Olsen
2007-11-28 05:04:38 +01:00
parent 5ab2166b05
commit 32ebd9617e
2 changed files with 8 additions and 6 deletions

View File

@@ -110,8 +110,7 @@ class Object
*/
char[] toString()
{
//return this.classinfo.name;
return "object.Object (no classinfo yet)";
return this.classinfo.name;
}
/**
@@ -137,8 +136,7 @@ class Object
// BUG: this prevents a compacting GC from working, needs to be fixed
//return cast(int)cast(void *)this - cast(int)cast(void *)o;
//throw new Error("need opCmp for class " ~ this.classinfo.name);
throw new Error("need opCmp for class unknown object.Object (no classinfo yet)");
throw new Error("need opCmp for class " ~ this.classinfo.name);
}
/**