Skip to content

Commit

Permalink
//= and friends should be able to handle Mu
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 6, 2012
1 parent 9103333 commit 71a5632
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/metaops.pm
Expand Up @@ -3,9 +3,9 @@ sub METAOP_ASSIGN(\$op) {
-> Mu \$a, Mu \$b { $a = $op( $a // $op(), $b) }
}

sub METAOP_TEST_ASSIGN:<//>(\$lhs, $rhs) is rw { $lhs // ($lhs = $rhs()) }
sub METAOP_TEST_ASSIGN:<||>(\$lhs, $rhs) is rw { $lhs || ($lhs = $rhs()) }
sub METAOP_TEST_ASSIGN:<&&>(\$lhs, $rhs) is rw { $lhs && ($lhs = $rhs()) }
sub METAOP_TEST_ASSIGN:<//>(Mu \$lhs, Mu $rhs) is rw { $lhs // ($lhs = $rhs()) }
sub METAOP_TEST_ASSIGN:<||>(Mu \$lhs, Mu $rhs) is rw { $lhs || ($lhs = $rhs()) }
sub METAOP_TEST_ASSIGN:<&&>(Mu \$lhs, Mu $rhs) is rw { $lhs && ($lhs = $rhs()) }

sub METAOP_NEGATE(\$op) {
-> Mu \$a, Mu \$b { !$op($a,$b) }
Expand Down

0 comments on commit 71a5632

Please sign in to comment.