Skip to content

Commit

Permalink
move Num.perl to setting
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Apr 17, 2009
1 parent 8f5ecdc commit ecca702
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions build/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ SETTING = \
src/setting/IO.pm \
src/setting/List.pm \
src/setting/Match.pm \
src/setting/Num.pm \
src/setting/Object.pm \
src/setting/Pair.pm \
src/setting/Range.pm \
Expand Down
12 changes: 0 additions & 12 deletions src/classes/Num.pir
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ Num - Perl 6 numbers
.end


=item perl()

Returns a Perl representation of the Num.

=cut

.sub 'perl' :method
$S0 = self
.return($S0)
.end


=item succ and pred

Increment and Decrement Methods
Expand Down
7 changes: 7 additions & 0 deletions src/setting/Num.pm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class Num is also {
multi method perl() {
~self
}
}

# vim: ft=perl6

0 comments on commit ecca702

Please sign in to comment.