and, another bug that cmop triggers but this doesn't
Jesse Luehrs [Fri, 12 Nov 2010 23:44:31 +0000 (17:44 -0600)]
without this commit, i get a whole mess of

Name
"Class::MOP::Class::Immutable::Class::MOP::Class::add_package_symbol"
used only once: possible typo at
/home/doy/coding/src/Class-MOP/blib/lib/Class/MOP/Package.pm line 106.

and i don't know why. i think it has something to do with minitrait
application, but i'm not sure what.

Stash.xs

index 76c7eed..dec97df 100644 (file)
--- a/Stash.xs
+++ b/Stash.xs
@@ -375,7 +375,7 @@ add_package_symbol(self, variable, initial=NULL, ...)
     }
 */
 
-    glob = gv_fetchsv(name, GV_ADD, vartype_to_svtype(variable.type));
+    glob = gv_fetchsv(name, GV_ADDMULTI, vartype_to_svtype(variable.type));
 
     if (initial) {
         SV *val;