Author: allison
Date: Mon Jun 4 17:52:35 2007
New Revision: 18816
Modified:
trunk/src/pmc/class.pmc
Log:
Extend the functionality of the Class PMC to pass more of the core object test
suite:
* The vtable stored for lookup by type number also needs a record of the class
object.
Modified: trunk/src/pmc/class.pmc
==============================================================================
--- trunk/src/pmc/class.pmc (original)
+++ trunk/src/pmc/class.pmc Mon Jun 4 17:52:35 2007
@@ -258,6 +258,7 @@
/* Link the type number with the class's vtable. */
self->vtable->base_type = type_num;
interp->vtables[type_num] = self->vtable;
+ interp->vtables[type_num]->pmc_class = self;
}
/* If we were attached to a namespace and are now attached to a new one,