Skip to content

Commit

Permalink
give more awesome error message for infinite ranges
Browse files Browse the repository at this point in the history
Closes RT #69728
  • Loading branch information
moritz committed Oct 13, 2009
1 parent 609cc25 commit 3d1afed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/setting/Operators.pm
Expand Up @@ -15,6 +15,14 @@ multi sub infix:<...>($lhs, @rhs) {
&infix:<...>(@a, @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) { multi sub infix:<...>($lhs, Code $generator) {
my @a = $lhs; my @a = $lhs;
&infix:<...>(@a, $generator); &infix:<...>(@a, $generator);
Expand Down

0 comments on commit 3d1afed

Please sign in to comment.