projects
/
p5sagit/Devel-Declare.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
78ac150
)
Some kind of fix or workaround for phaylon's parameterized role bug in MXD.
mxd_parameterized_bug
Florian Ragwitz [Sat, 19 Dec 2009 20:18:05 +0000 (21:18 +0100)]
lib/Devel/Declare.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Devel/Declare.pm
b/lib/Devel/Declare.pm
index
4e6ec02
..
6217b57
100644
(file)
--- a/
lib/Devel/Declare.pm
+++ b/
lib/Devel/Declare.pm
@@
-97,6
+97,7
@@
sub shadow_sub {
no strict 'refs';
my ($pack, $pname) = ($name =~ m/(.+)::([^:]+)/);
push(@$temp_save, $pack->can($pname));
+ delete ${ "${pack}::" }{$pname};
no warnings 'redefine';
no warnings 'prototype';
*{$name} = $cr;