[svn:parrot] r48899 - trunk/src

cotto at svn.parrot.org cotto at svn.parrot.org
Fri Sep 10 02:33:15 UTC 2010


Author: cotto
Date: Fri Sep 10 02:33:15 2010
New Revision: 48899
URL: https://trac.parrot.org/parrot/changeset/48899

Log:
back out the functional part of r48851, which broke Rakudo

Modified:
   trunk/src/oo.c

Modified: trunk/src/oo.c
==============================================================================
--- trunk/src/oo.c	Fri Sep 10 01:25:08 2010	(r48898)
+++ trunk/src/oo.c	Fri Sep 10 02:33:15 2010	(r48899)
@@ -260,12 +260,8 @@
          || base_type == enum_class_ResizableStringArray
          || base_type == enum_class_String)
             type = Parrot_pmc_get_type(interp, key);
-        else if (VTABLE_does(interp, key, CONST_STRING(interp, "string")) ||
-                base_type == enum_class_NameSpace)
-            type = Parrot_pmc_get_type_str(interp, VTABLE_get_string(interp, key));
         else
-            Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
-                    "can't get class from an instance of class '%Ss'", VTABLE_name(interp, key));
+            type = Parrot_pmc_get_type_str(interp, VTABLE_get_string(interp, key));
 
         classobj = get_pmc_proxy(interp, type);
     }


More information about the parrot-commits mailing list