Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make != redispatch to not ==

this fixes both a hang of != with complex numbers, and not-raising with Junctions
only natively typed variants of != and a (Mu, Mu) candidate remain
  • Loading branch information...
commit 4a247b1a34af698ba201070d915ea0d8d88c7774 1 parent e2ebf39
@moritz moritz authored
View
3  src/core/Int.pm
@@ -179,9 +179,6 @@ multi infix:<==>(int $a, int $b) {
nqp::p6bool(nqp::iseq_i($a, $b))
}
-multi infix:<!=>(Int:D \$a, Int:D \$b) {
- nqp::p6bool(nqp::isne_I(nqp::p6decont($a), nqp::p6decont($b)))
-}
multi infix:<!=>(int $a, int $b) {
nqp::p6bool(nqp::isne_i($a, $b))
}
View
3  src/core/Num.pm
@@ -328,9 +328,6 @@ multi infix:<==>(num $a, num $b) returns Bool:D {
nqp::p6bool(nqp::iseq_n($a, $b))
}
-multi infix:<!=>(Num:D \$a, Num:D \$b) returns Bool:D {
- nqp::p6bool(nqp::isne_n(nqp::unbox_n($a), nqp::unbox_n($b)))
-}
multi infix:<!=>(num $a, num $b) returns Bool:D {
nqp::p6bool(nqp::isne_n($a, $b))
}
View
2  src/core/Numeric.pm
@@ -224,7 +224,7 @@ multi infix:<==>(\$a, \$b) { $a.Numeric == $b.Numeric }
proto infix:<!=>($a?, $b?) { * }
multi infix:<!=>($x?) { Bool::True }
-multi infix:<!=>(\$a, \$b) { $a.Numeric != $b.Numeric }
+multi infix:<!=>(Mu \$a, Mu \$b) { not $a == $b }
proto infix:«<»($a?, $b?) { * }
multi infix:«<»($x?) { Bool::True }
View
2  src/core/Real.pm
@@ -99,8 +99,6 @@ multi infix:«<=>»(Real \$a, Real \$b) { $a.Bridge <=> $b.Bridge }
multi infix:<==>(Real \$a, Real \$b) { $a.Bridge == $b.Bridge }
-multi infix:<!=>(Real \$a, Real \$b) { $a.Bridge != $b.Bridge }
-
multi infix:«<»(Real \$a, Real \$b) { $a.Bridge < $b.Bridge }
multi infix:«<=»(Real \$a, Real \$b) { $a.Bridge <= $b.Bridge }
View
3  src/core/Temporal.pm
@@ -504,9 +504,6 @@ multi infix:«<=>»(Date:D $a, Date:D $b) {
multi infix:<==>(Date:D $a, Date:D $b) {
$a.daycount == $b.daycount
}
-multi infix:<!=>(Date:D $a, Date:D $b) {
- $a.daycount != $b.daycount
-}
multi infix:«<=»(Date:D $a, Date:D $b) {
$a.daycount <= $b.daycount
}
Please sign in to comment.
Something went wrong with that request. Please try again.