Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "make Int.rand return a random Int if the invocant is too big …

…to become a Num"

This reverts commit 59dd40f.
It broke stuff, even though I thought I had tested it. Back to the debugging
board.
  • Loading branch information...
commit 7d6aa02cf8c4e5c1e7530a3545182ec26179e01e 1 parent 59dd40f
@moritz moritz authored
Showing with 1 addition and 6 deletions.
  1. +0 −5 src/core/Int.pm
  2. +1 −1  tools/build/NQP_REVISION
View
5 src/core/Int.pm
@@ -64,11 +64,6 @@ my class Int does Real {
method floor(Int:D:) { self }
method round(Int:D:) { self }
method ceiling(Int:D:) { self }
-
- method rand(Int:D) {
- my num $n = nqp::tonum_I(self);
- $n === $Inf ?? nqp::rand_I(self, Int) !! $n.rand;
- }
}
multi prefix:<++>(Int:D \a is rw) { # XXX
View
2  tools/build/NQP_REVISION
@@ -1 +1 @@
-2012.09-3-g8ae6f20
+2012.09-2-gc458a08
Please sign in to comment.
Something went wrong with that request. Please try again.