projects
/
p5sagit/Eval-WithLexicals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Need to use around to fake class style inheritance in a role, yuck
[p5sagit/Eval-WithLexicals.git]
/
lib
/
Eval
/
WithLexicals
/
WithHintPersistence.pm
diff --git
a/lib/Eval/WithLexicals/WithHintPersistence.pm
b/lib/Eval/WithLexicals/WithHintPersistence.pm
index
92d5e77
..
de3f76b
100644
(file)
--- a/
lib/Eval/WithLexicals/WithHintPersistence.pm
+++ b/
lib/Eval/WithLexicals/WithHintPersistence.pm
@@
-41,7
+41,8
@@
sub _capture_unroll_global {
);
}
-sub setup_code {
+around setup_code => sub {
+ shift; # we bypass orig, i.e. using role as normal inheritance.
my($self) = @_;
# Only run the prelude on the first eval, hints will be set after
# that.