Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove Complex ** Any and Any ** Complex, as they should no longer be…
… needed. Change Any * Any to convert its arguments to Numeric and call multiply on them then.
  • Loading branch information
colomon committed Apr 29, 2010
1 parent 3966c62 commit 0857098
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions src/core/Complex.pm
Expand Up @@ -324,14 +324,6 @@ multi sub infix:<**>(Complex $a, Complex $b) {
($a.log * $b).exp;
}

multi sub infix:<**>(Complex $a, $b) {
($a.log * $b).exp;
}

multi sub infix:<**>($a, Complex $b) {
($a.log * $b).exp;
}

multi sub infix:<**>(Complex $a, Real $b) {
($a.log * $b).exp;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/operators.pm
Expand Up @@ -42,7 +42,7 @@ our multi sub infix:<->($a, $b) {
}

our multi sub infix:<*>($a, $b) {
pir::mul__NNN($a, $b)
+$a * +$b;
}

our multi sub infix:</>($a, $b) {
Expand Down

0 comments on commit 0857098

Please sign in to comment.