Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "native infix:<xx> operator"
This reverts commit 05b1cb1.
It was wrong (misspelled the operator name), and causes
segfaults when the operator name is fixed
  • Loading branch information
moritz committed Apr 12, 2012
1 parent 05b1cb1 commit b229580
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/core/Str.pm
Expand Up @@ -788,9 +788,6 @@ multi infix:<x>(Str:D $s, Int:D $repetition) {
?? ''
!! nqp::p6box_s(nqp::x(nqp::unbox_s($s), nqp::unbox_i($repetition)))
}
multi infix(str $s, int $repetition) returns str {
$repetition <= 0 ?? '' !! nqp::x($s, $repetition);
}

multi infix:<cmp>(Str:D \$a, Str:D \$b) {
Order.(nqp::p6box_i(nqp::cmp_s(nqp::unbox_s($a), nqp::unbox_s($b))))
Expand Down

0 comments on commit b229580

Please sign in to comment.