Skip to content

Commit

Permalink
make eqv rely on infx:<===> more
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 25, 2009
1 parent 9e9c3cc commit 6c43f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/setting/Operators.pm
Expand Up @@ -17,8 +17,8 @@ multi sub infix:<...> (@lhs, Code $generator) {
return @result;
}

multi sub infix:<eqv> (Int $a, Int $b) { $a == $b }
multi sub infix:<eqv> (Str $a, Str $b) { $a eq $b }
multi sub infix:<eqv> (Num $a, Num $b) { $a === $b }
multi sub infix:<eqv> (Str $a, Str $b) { $a === $b }
multi sub infix:<eqv> (Positional $a, Positional $b) {
return Bool::False unless $a.WHAT === $b.WHAT;
return Bool::False unless $a.elems == $b.elems;
Expand Down

0 comments on commit 6c43f93

Please sign in to comment.