[svn:parrot] r47771 - branches/gsoc_past_optimization/src/pmc

tcurtis at svn.parrot.org tcurtis at svn.parrot.org
Wed Jun 23 01:39:48 UTC 2010


Author: tcurtis
Date: Wed Jun 23 01:39:47 2010
New Revision: 47771
URL: https://trac.parrot.org/parrot/changeset/47771

Log:
Capture provides hash. NQP breaks if Capture provides array.

Modified:
   branches/gsoc_past_optimization/src/pmc/capture.pmc

Modified: branches/gsoc_past_optimization/src/pmc/capture.pmc
==============================================================================
--- branches/gsoc_past_optimization/src/pmc/capture.pmc	Wed Jun 23 00:34:17 2010	(r47770)
+++ branches/gsoc_past_optimization/src/pmc/capture.pmc	Wed Jun 23 01:39:47 2010	(r47771)
@@ -35,7 +35,7 @@
             SETATTR_Capture_hash((i), (obj),  Parrot_pmc_new((i), enum_class_Hash)); \
     } while (0)
 
-pmclass Capture auto_attrs {
+pmclass Capture provides hash auto_attrs {
     ATTR PMC    *array;
     ATTR PMC    *hash;
 
@@ -855,8 +855,8 @@
             PMC    *ns        = INTERP->root_namespace;
             STRING *attribute = CONST_STRING(INTERP, "proxy");
 
-            ns                = Parrot_get_namespace_keyed_str(INTERP, ns, CONST_STRING(INTERP, "parrot"));
-            ns                = Parrot_get_namespace_keyed_str(INTERP, ns, CONST_STRING(INTERP, "Capture"));
+            ns                = Parrot_ns_get_namespace_keyed_str(INTERP, ns, CONST_STRING(INTERP, "parrot"));
+            ns                = Parrot_ns_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