Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement Int.succ, jnthn++
  • Loading branch information
moritz committed Jun 7, 2011
1 parent 8772963 commit fa5da99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CORE.setting/Int.pm
Expand Up @@ -17,5 +17,9 @@ my class Int {
method chr() {
pir::perl6_box_str__PS(pir::chr(pir::repr_unbox_int__IP(self)));
}

proto method succ(|$) {*}
multi method succ(Int:D:) { self + 1 }
multi method succ(Int:U:) { 1 }
}

0 comments on commit fa5da99

Please sign in to comment.