Skip to content

Commit

Permalink
Added "get_number" method to Object.pir to allow numification/intific…
Browse files Browse the repository at this point in the history
…ation of Perl 6 classes.

Signed-off-by: Moritz Lenz <moritz@faui2k3.org>
  • Loading branch information
cspencer authored and moritz committed Apr 20, 2009
1 parent ae5e785 commit 49e00b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/classes/Object.pir
Expand Up @@ -715,6 +715,11 @@ Helper for doing calls on the metaclass.
.return ($S0)
.end
.sub '' :vtable('get_number') :method
$N0 = self.'Num'()
.return ($N0)
.end
.sub '' :vtable('increment') :method
$P0 = self.'succ'()
'infix:='(self, $P0)
Expand Down

0 comments on commit 49e00b4

Please sign in to comment.