Skip to content

Commit

Permalink
Should not curry .WHAT and other interogative macros.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jul 15, 2010
1 parent 727782e commit 3d0399a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Actions.pm
Expand Up @@ -3178,6 +3178,10 @@ INIT {
%not_curried{'&infix:<~~>'} := 1;
%not_curried{'&infix:<=>'} := 1;
%not_curried{'&infix:<:=>'} := 1;
%not_curried{'WHAT'} := 1;
%not_curried{'HOW'} := 1;
%not_curried{'WHO'} := 1;
%not_curried{'WHERE'} := 1;
}
sub whatever_curry($past, $upto_arity) {
if $past.isa(PAST::Op) && !%not_curried{$past.name} {
Expand Down

0 comments on commit 3d0399a

Please sign in to comment.