[svn:parrot] r38394 - trunk/src/pmc

tene at svn.parrot.org tene at svn.parrot.org
Wed Apr 29 03:35:31 UTC 2009


Author: tene
Date: Wed Apr 29 03:35:19 2009
New Revision: 38394
URL: https://trac.parrot.org/parrot/changeset/38394

Log:
Fix a class lookup issue with capture.pmc

Modified:
   trunk/src/pmc/capture.pmc

Modified: trunk/src/pmc/capture.pmc
==============================================================================
--- trunk/src/pmc/capture.pmc	Wed Apr 29 01:48:05 2009	(r38393)
+++ trunk/src/pmc/capture.pmc	Wed Apr 29 03:35:19 2009	(r38394)
@@ -546,9 +546,12 @@
         /* XXX:  This workaround is for when we get here as
                  part of a subclass of Capture */
         if (PObj_is_object_TEST(SELF)) {
-            STRING *classname = CONST_STRING(INTERP, "Capture");
-            PMC    *classobj  = Parrot_oo_get_class_str(INTERP, classname);
             STRING *attribute = CONST_STRING(interp, "proxy");
+            PMC    *classobj;
+            PMC *ns = INTERP->root_namespace;
+            ns = Parrot_get_namespace_keyed_str(INTERP, ns, CONST_STRING(INTERP, "parrot"));
+            ns = Parrot_get_namespace_keyed_str(INTERP, ns, CONST_STRING(INTERP, "Capture"));
+            classobj  = Parrot_oo_get_class(INTERP, ns);
             capt              = VTABLE_get_attr_keyed(interp, SELF, classobj, attribute);
         }
 


More information about the parrot-commits mailing list