# New Ticket Created by Stephane Payrard
# Please include the string: [perl #53956]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53956 >
The copy opcode is described as :
=item B<copy>(inout PMC, invar PMC)
Morphs the PMC in $1 to the type of the PMC in $2, then assigns $2 to $1.
But in most languages, the (deep?) copy of a literal is a rw entity
More so, in Perl6, the literal has type C<List> while the copy obtained by
C<my @a = [1,2]> should have type C<Array>.
Additionnaly, in rakudo, the C<Array> behavior (including mutations)
is implemented as a a C<List>
as shown by C<my @a; say @a.WHAT>.
--
cognominal stef