[svn:parrot] r42170 - trunk/src/pmc
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Fri Oct 30 03:15:29 UTC 2009
Author: chromatic
Date: Fri Oct 30 03:15:22 2009
New Revision: 42170
URL: https://trac.parrot.org/parrot/changeset/42170
Log:
[PMC] Removed implicit double-underscore prefix logic to override vtable
entries when adding Subs to NameSpace PMC. If PASM still needs a fix, let's do it the right way and add the :vtable attribute to pcc_sub declarations.
Modified:
trunk/src/pmc/namespace.pmc
Modified: trunk/src/pmc/namespace.pmc
==============================================================================
--- trunk/src/pmc/namespace.pmc Fri Oct 30 03:13:04 2009 (r42169)
+++ trunk/src/pmc/namespace.pmc Fri Oct 30 03:15:22 2009 (r42170)
@@ -54,16 +54,6 @@
PMC_get_sub(interp, value, sub);
- /* Handle vtable methods with two underscores at the start. */
- if (sub->vtable_index == -1) {
- if (Parrot_str_find_index(interp, key, CONST_STRING(interp, "__"), 0) == 0) {
- STRING * const meth_name = Parrot_str_substr(interp, key, 2,
- (INTVAL)(Parrot_str_byte_length(interp, key) - 2), NULL, 0);
- sub->vtable_index =
- Parrot_get_vtable_index(interp, meth_name);
- }
- }
-
if (sub->vtable_index != -1) {
/* Insert it in class, if there is a class */
if (!PMC_IS_NULL(classobj) && PObj_is_class_TEST(classobj)) {
More information about the parrot-commits
mailing list