Permalink
Browse files

give more awesome error message for infinite ranges

Closes RT #69728
  • Loading branch information...
1 parent 609cc25 commit 3d1afedfd18a85d570c96937d9abe7f0d6128c49 @moritz moritz committed Oct 13, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/setting/Operators.pm
View
@@ -15,6 +15,14 @@ multi sub infix:<...>($lhs, @rhs) {
&infix:<...>(@a, @rhs);
}
+multi sub infix:<...>($lhs, Whatever $) {
+ die 'Sorry, lazy lists and infinite ranges are not yet implemented';
+}
+
+multi sub infix:<...>(@lhs, Whatever $) {
+ die 'Sorry, lazy lists and infinite ranges are not yet implemented';
+}
+
multi sub infix:<...>($lhs, Code $generator) {
my @a = $lhs;
&infix:<...>(@a, $generator);

0 comments on commit 3d1afed

Please sign in to comment.