[svn:parrot] r44120 - trunk/src/pmc

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Wed Feb 17 20:57:01 UTC 2010


Author: whiteknight
Date: Wed Feb 17 20:57:00 2010
New Revision: 44120
URL: https://trac.parrot.org/parrot/changeset/44120

Log:
remove c++ comments. mikehh++

Modified:
   trunk/src/pmc/namespace.pmc

Modified: trunk/src/pmc/namespace.pmc
==============================================================================
--- trunk/src/pmc/namespace.pmc	Wed Feb 17 20:48:32 2010	(r44119)
+++ trunk/src/pmc/namespace.pmc	Wed Feb 17 20:57:00 2010	(r44120)
@@ -402,7 +402,9 @@
 
     VTABLE PMC *get_pmc_keyed(PMC *key) {
         PMC *ns = SUPER(key);
-        //PMC    *ns = INTERP->vtables[enum_class_Hash]->get_pmc_keyed(INTERP, SELF, key);
+        /* Is this equivalent?
+        PMC    *ns = INTERP->vtables[enum_class_Hash]->get_pmc_keyed(INTERP, SELF, key);
+        */
 
         if (!PMC_IS_NULL(ns))
             return ns;
@@ -429,7 +431,7 @@
                 STRING * const name = VTABLE_get_string_keyed_int(INTERP, key, i);
                 if (name == NULL || name == STRINGNULL) {
                     ns = PMCNULL;
-                    // TODO: Throw an exception or something?
+                    /* What to do here? Throw an exception or something? */
                     break;
                 }
                 ns = Parrot_get_namespace_keyed_str(INTERP, ns, name);
@@ -442,8 +444,10 @@
             ns = Parrot_get_namespace_keyed_str(INTERP, ns, name);
             return ns;
         }
-        //Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_GLOBAL_NOT_FOUND,
-        //    "Invalid namespace key in get_pmc_keyed_str");
+        /* If we get the wrong type, should we throw an exception?
+        Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_GLOBAL_NOT_FOUND,
+            "Invalid namespace key in get_pmc_keyed_str");
+        */
     }
 
     VTABLE PMC *get_pmc_keyed_int(INTVAL key) {


More information about the parrot-commits mailing list