Skip to content

Commit

Permalink
implement infix:<div>(Int, Int)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Lenz committed Aug 31, 2009
1 parent 17bcd58 commit a378770
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/setting/NYI.pm
Expand Up @@ -25,10 +25,6 @@ multi infix:«<<==» (*@a) {
die 'Feed operators are not yet implemented in Rakudo, sorry';
}

multi infix:<div>($a, $b) {
die 'infix:<div> not yet implemented in Rakudo, sorry';
}

multi infix:<mod>($a, $b) {
die 'infix:<mod> not yet implemented in Rakudo, sorry';
}
Expand Down
5 changes: 5 additions & 0 deletions src/setting/Rat.pm
Expand Up @@ -45,3 +45,8 @@ multi sub infix:</>(Rat $a, Rat $b) {
Rat.new($a.numerator * $b.denominator, $a.denominator * $b.numerator);
}

multi sub infix:<div>(Int $a, Int $b) {
Rat.new($a, $b);
}

# vim: ft=perl6 sw=4 ts=4 expandtab

0 comments on commit a378770

Please sign in to comment.