[svn:parrot] r39143 - trunk/src
bacek at svn.parrot.org
bacek at svn.parrot.org
Sun May 24 09:15:59 UTC 2009
Author: bacek
Date: Sun May 24 09:15:56 2009
New Revision: 39143
URL: https://trac.parrot.org/parrot/changeset/39143
Log:
Use CONST_STRING istead of Parrot_new_string_const in Parrot_oo_get_class_str caching. chromatic++ for advise.
Modified:
trunk/src/oo.c
Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c Sun May 24 04:41:13 2009 (r39142)
+++ trunk/src/oo.c Sun May 24 09:15:56 2009 (r39143)
@@ -396,8 +396,7 @@
if (ns->vtable->base_type != enum_class_NameSpace) {
new_ns = Parrot_make_namespace_keyed_str(interp, hll_ns, name);
}
- Parrot_PCCINVOKE(interp,
- new_ns, Parrot_str_new_constant(interp, "set_class"), "P->", new_class);
+ Parrot_PCCINVOKE(interp, new_ns, CONST_STRING(interp, "set_class"), "P->", new_class);
return new_class;
}
}
More information about the parrot-commits
mailing list