Created
September 10, 2009 20:48
-
-
Save rakudo/184809 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pmichaud@plum:~/rakudo$ git diff | |
diff --git a/src/classes/Num.pir b/src/classes/Num.pir | |
index c282102..cdcc389 100644 | |
--- a/src/classes/Num.pir | |
+++ b/src/classes/Num.pir | |
@@ -25,6 +25,12 @@ Num - Perl 6 numbers | |
.const 'Sub' $P0 = "Num::ACCEPTS" | |
$P1 = typeof numproto | |
$P1.'add_method'('ACCEPTS', $P0) | |
+ | |
+ # Map Parrot Float to Rakudo Num | |
+ $P0 = getinterp | |
+ $P1 = get_class ['Float'] | |
+ $P2 = get_class ['Num'] | |
+ $P0.'hll_map'($P1, $P2) | |
.end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment