# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #72350]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=72350 >
This be Rakudo db84bc on Parrot r43174.
$ perl6 -e 'class A {}; sub foo($a is copy) { say $a.WHICH; }; my $a =
A.new; say $a.WHICH; foo($a)'
4354544520
4354544520
$ perl6 -e 'class A { has $.x is rw }; sub foo($a is copy) { $a.x =
"OH HAI" }; my $a = A.new; $a.x = 42; foo($a); say $a.x'
OH HAI
Now it may be that I've not completely understood the way 'is copy'
works when handling objects, but both of the above evaluations
surprise me. A copy would have a different .WHICH, would it not? And
(therefore) the original wouldn't change when the copy changes. If
not, then what does 'is copy' actually mean for objects?