Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created November 14, 2016 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/a4e226de46787975fc56bc2c56ce5a0b to your computer and use it in GitHub Desktop.
Save zoffixznet/a4e226de46787975fc56bc2c56ce5a0b to your computer and use it in GitHub Desktop.
diff --git a/src/core/Junction.pm b/src/core/Junction.pm
index 4ff9e10..419ca04 100644
--- a/src/core/Junction.pm
+++ b/src/core/Junction.pm
@@ -33,7 +33,7 @@ my class Junction { # declared in BOOTSTRAP
nqp::stmts(
nqp::while(
(nqp::islt_i($i,$elems)
- && nqp::if(nqp::isconcrete(nqp::atpos($!storage,$i)),0,1)),
+ && nqp::if(nqp::atpos($!storage,$i).defined,0,1)),
($i = nqp::add_i($i,1))
),
nqp::p6bool(nqp::islt_i($i,$elems))
@@ -43,7 +43,7 @@ my class Junction { # declared in BOOTSTRAP
nqp::stmts(
nqp::while(
(nqp::islt_i($i,$elems)
- && nqp::isconcrete(nqp::atpos($!storage,$i))),
+ && nqp::atpos($!storage,$i)).defined,
($i = nqp::add_i($i,1))
),
nqp::p6bool(nqp::iseq_i($i,$elems))
@@ -53,7 +53,7 @@ my class Junction { # declared in BOOTSTRAP
nqp::stmts(
nqp::while(
(nqp::islt_i($i,$elems)
- && nqp::if(nqp::isconcrete(nqp::atpos($!storage,$i)),0,1)),
+ && nqp::if(nqp::atpos($!storage,$i).defined,0,1)),
($i = nqp::add_i($i,1))
),
nqp::p6bool(nqp::iseq_i($i,$elems))
@@ -65,7 +65,7 @@ my class Junction { # declared in BOOTSTRAP
(nqp::islt_i(($i = nqp::add_i($i,1)),$elems)
&& nqp::isle_i($seen,1)),
nqp::if(
- nqp::isconcrete(nqp::atpos($!storage,$i)),
+ nqp::atpos($!storage,$i).defined,
($seen = nqp::add_i($seen,1))
)
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment