Skip to content

Commit

Permalink
Implement 'is copy' array params.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 30, 2013
1 parent 7b04775 commit af39d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm/jvm/runtime/org/perl6/rakudo/Binder.java
Expand Up @@ -396,7 +396,8 @@ else if ((paramFlags & SIG_ELEM_IS_PARCEL) != 0) {
if ((paramFlags & SIG_ELEM_ARRAY_SIGIL) != 0) { if ((paramFlags & SIG_ELEM_ARRAY_SIGIL) != 0) {
SixModelObject bindee = decontValue; SixModelObject bindee = decontValue;
if ((paramFlags & SIG_ELEM_IS_COPY) != 0) { 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; cf.oLex[sci.oTryGetLexicalIdx(varName)] = bindee;
} }
Expand Down

0 comments on commit af39d66

Please sign in to comment.