Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
string repetition should coerce to Int, not just Numeric. TiMBuS++
  • Loading branch information
moritz committed Oct 3, 2011
1 parent af0d2e1 commit eb8d302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Stringy.pm
Expand Up @@ -14,7 +14,7 @@ multi infix:<~>(\$a, \$b) { $a.Stringy ~ $b.Stringy }
proto infix:<x>(|$) { * }
multi infix:<x>() { fail "No zero-arg meaning for infix:<x>" }
multi infix:<x>($x) { $x.Stringy }
multi infix:<x>($s, $n) { $s.Stringy x $n.Numeric }
multi infix:<x>($s, $n) { $s.Stringy x $n.Int }

proto infix:<leg>(|$) { * }
multi infix:<leg>(\$a, \$b) { $a.Stringy cmp $b.Stringy }
Expand Down

0 comments on commit eb8d302

Please sign in to comment.