[svn:parrot] r48717 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Sun Aug 29 02:05:08 UTC 2010
Author: chromatic
Date: Sun Aug 29 02:05:08 2010
New Revision: 48717
URL: https://trac.parrot.org/parrot/changeset/48717
Log:
[PMC] Delayed hash get in set_pmc_keyed_str().
Modified:
trunk/src/pmc/namespace.pmc
Modified: trunk/src/pmc/namespace.pmc
==============================================================================
--- trunk/src/pmc/namespace.pmc Sun Aug 29 02:05:05 2010 (r48716)
+++ trunk/src/pmc/namespace.pmc Sun Aug 29 02:05:08 2010 (r48717)
@@ -427,7 +427,7 @@
:value->vtable->base_type == enum_class_NameSpace;
/* don't need this everywhere yet */
- PMC * const old = (PMC *)parrot_hash_get(INTERP, (Hash *)SELF.get_pointer(), key);
+ PMC *old;
/* If it's a sub... */
if (maybe_add_sub_to_namespace(INTERP, SELF, key, value))
@@ -439,6 +439,8 @@
/* If it's a multi-sub and the first in this NS... */
add_multi_to_namespace(INTERP, SELF, key, value);
+ old = (PMC *)parrot_hash_get(INTERP, (Hash *)SELF.get_pointer(), key);
+
if (!old)
SUPER(key, value);
else {
More information about the parrot-commits
mailing list