[svn:parrot] r44833 - trunk/src
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Tue Mar 9 23:34:32 UTC 2010
Author: whiteknight
Date: Tue Mar 9 23:34:32 2010
New Revision: 44833
URL: https://trac.parrot.org/parrot/changeset/44833
Log:
allow adding of :anon :vtable Subs to the namespace. This technically resolves TT #1505, though some cleanup and performance improvements in this area would be welcome additions later
Modified:
trunk/src/global.c
Modified: trunk/src/global.c
==============================================================================
--- trunk/src/global.c Tue Mar 9 23:19:56 2010 (r44832)
+++ trunk/src/global.c Tue Mar 9 23:34:32 2010 (r44833)
@@ -813,7 +813,8 @@
store_sub_in_multi(interp, sub_pmc, ns);
/* store other subs (as long as they're not :anon) */
- else if (!(PObj_get_FLAGS(sub_pmc) & SUB_FLAG_PF_ANON)) {
+ else if (!(PObj_get_FLAGS(sub_pmc) & SUB_FLAG_PF_ANON)
+ || sub->vtable_index != -1) {
STRING * const ns_entry_name = sub->ns_entry_name;
PMC * const nsname = sub->namespace_name;
More information about the parrot-commits
mailing list