Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make a proto for exp so named arguments works, and at the same time r…
…emove the now redundant exp(Complex).
  • Loading branch information
colomon committed Dec 7, 2009
1 parent a113b8f commit a1468ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/Any-num.pm
Expand Up @@ -171,7 +171,7 @@ augment class Any {
}

our multi sub abs($x) { (+$x).abs() }
our multi sub exp($x) { $x.Num.exp() }
our proto sub exp($exponent) { $exponent.exp() }
our multi sub log($x) { $x.Num.log() }
our multi sub log10($x) { $x.Num.log10 }

Expand Down
4 changes: 0 additions & 4 deletions src/core/Complex.pm
Expand Up @@ -329,8 +329,4 @@ multi sub sqrt(Complex $x) {
$x.sqrt;
}

multi sub exp(Complex $x) {
$x.exp()
}

# vim: ft=perl6

0 comments on commit a1468ab

Please sign in to comment.