Browse files

Default to Mu for action methods

that way fewer method names are prone to name conflicts, because Mu simply
does not have as many methods as Any. But it is not a real fix
  • Loading branch information...
1 parent 690dadc commit 0973612366de17d6eab26e975663e63170e5d1d5 @moritz moritz committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/Grammar.pm
View
2 src/core/Grammar.pm
@@ -1,5 +1,5 @@
my class Grammar is Cursor {
- method parse($target, :$rule = 'TOP', :$actions, *%opt) {
+ method parse($target, :$rule = 'TOP', Mu :$actions = Mu, *%opt) {
my $*ACTIONS = $actions;
pir::find_caller_lex__Ps('$/') =
self."!cursor_init"($target, |%opt)."$rule"().MATCH;

0 comments on commit 0973612

Please sign in to comment.