Permalink
Browse files

Implement 'is copy' array params.

  • Loading branch information...
jnthn committed Jun 30, 2013
1 parent 7b04775 commit af39d66285d58c4cba08cdafde1cb0994422976a
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/vm/jvm/runtime/org/perl6/rakudo/Binder.java
@@ -396,7 +396,8 @@ else if ((paramFlags & SIG_ELEM_IS_PARCEL) != 0) {
if ((paramFlags & SIG_ELEM_ARRAY_SIGIL) != 0) {
SixModelObject bindee = decontValue;
if ((paramFlags & SIG_ELEM_IS_COPY) != 0) {
- throw new RuntimeException("is copy array param NYI");
+ bindee = Ops.p6list(gcx.EMPTYARR.clone(tc), gcx.Array, gcx.True, tc);
+ Ops.p6store(bindee, decontValue, tc);
}
cf.oLex[sci.oTryGetLexicalIdx(varName)] = bindee;
}

0 comments on commit af39d66

Please sign in to comment.