Skip to content

Commit

Permalink
Restore the old, working definition of infix:</>($a, Complex $b).
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 12, 2010
1 parent ecd6840 commit c8164f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/Complex.pm
Expand Up @@ -305,9 +305,7 @@ multi sub infix:</>(Complex $a, $b) {
}

multi sub infix:</>($a, Complex $b) {
my $d = $b.re * $b.re + $b.im * $b.im;
Complex.new(($a * $b.re) / $d,
($a * $b.im) / $d);
Complex.new($a, 0) / $b;
}

multi sub postfix:<i>($x) {
Expand Down

0 comments on commit c8164f1

Please sign in to comment.