Skip to content

Commit

Permalink
Make multi sub(:@c is copy) { } work
Browse files Browse the repository at this point in the history
Apparently this was looked over during the GLR
  • Loading branch information
lizmat committed Nov 2, 2017
1 parent 0dc4a0e commit be1e287
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Perl6/Metamodel/BOOTSTRAP.nqp
Expand Up @@ -440,11 +440,9 @@ my class Binder {
# and a normal bind is a straightforward binding.
if $flags +& $SIG_ELEM_ARRAY_SIGIL {
if $flags +& $SIG_ELEM_IS_COPY {
# XXX GLR
nqp::die('replace this Array is copy logic');
# my $bindee := nqp::create(Array);
# $bindee.STORE(nqp::decont($oval));
# nqp::bindkey($lexpad, $varname, $bindee);
my $bindee := nqp::create(Array);
$bindee.STORE(nqp::decont($oval));
nqp::bindkey($lexpad, $varname, $bindee);
}
else {
nqp::bindkey($lexpad, $varname, nqp::decont($oval));
Expand Down

0 comments on commit be1e287

Please sign in to comment.