Permalink
Browse files

Turn off compile at BEGIN for Method::Signatures::Modifiers, again.

Method::Signatures::Modifiers always defines methods at runtime.  It
was doing this by overriding code_for(), but the compile time logic
has moved.  Overriding _do_compile_at_BEGIN() is safer.
  • Loading branch information...
1 parent c1be2ac commit b0f870ae43ee19b974e74c47f92f9661286aa3ee @schwern schwern committed Aug 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/Method/Signatures/Modifiers.pm
View
6 lib/Method/Signatures/Modifiers.pm
@@ -216,8 +216,6 @@ sub import
#
# * Adds the modifier.
#
-# * No BeginLift.
-#
# * If it's _not_ for a modifier, just fall through to code_for() in Method::Signatures.
#
# And that's all this code does.
@@ -267,6 +265,10 @@ sub inject_if_block
}
+# Always compile at runtime
+sub _do_compile_at_BEGIN { 0 }
+
+
=head1 BUGS, CAVEATS and NOTES
Note that although this module causes all calls to

0 comments on commit b0f870a

Please sign in to comment.