Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add temporary short-circuits to "array" preventing some test hangs.
  • Loading branch information
skids committed Aug 15, 2015
1 parent ea96dbc commit 91b2dd6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/core/native_array.pm
Expand Up @@ -476,9 +476,13 @@ class array does Iterable is repr('VMArray') {
# XXX GLR will infinite survive?
multi method infinite(array:D:) { False }

method eager() { self }
method flat() { self }
method list() { self }
# XXX GLR temporary backfill to prevent some loops
# method eager() { self }
# method flat() { self }
# method list() { self }
method eager() { nqp::die('XXX native array iterators need re-implementing') }
method flat() { nqp::die('XXX native array iterators need re-implementing') }
method list() { nqp::die('XXX native array iterators need re-implementing') }

multi method gist(array:D:) {
self.map(-> $elem {
Expand Down

0 comments on commit 91b2dd6

Please sign in to comment.