Skip to content

Commit

Permalink
[setting] make !% work with Whatever
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleha committed Oct 26, 2009
1 parent fc56071 commit 657d55c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/setting/Operators.pm
Expand Up @@ -163,7 +163,7 @@ sub prefix:<[||]>(*@a) {
return ();
}

sub infix:<!%>($a, $b) { ! ($a % $b) }
multi sub infix:<!%>($a, $b) { ! ($a % $b) }


multi sub infix:<+>($a, $b) {
Expand Down
9 changes: 9 additions & 0 deletions src/setting/Whatever.pm
Expand Up @@ -65,6 +65,15 @@ multi sub infix:<%>($a, Whatever $b)
multi sub infix:<%>($a, WhateverCode $b)
{ WhateverCodeX('infix:%', $a, $b) }

multi sub infix:<!%>(Whatever $a, $b) is default
{ WhateverCodeX('infix:!%', $a, $b) }
multi sub infix:<!%>(WhateverCode $a, $b) is default
{ WhateverCodeX('infix:!%', $a, $b) }
multi sub infix:<!%>($a, Whatever $b)
{ WhateverCodeX('infix:!%', $a, $b) }
multi sub infix:<!%>($a, WhateverCode $b)
{ WhateverCodeX('infix:!%', $a, $b) }

multi sub infix:<div>(Whatever $a, $b) is default
{ WhateverCodeX('infix:div', $a, $b) }
multi sub infix:<div>(WhateverCode $a, $b) is default
Expand Down

0 comments on commit 657d55c

Please sign in to comment.