# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #82810] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=82810 >
<masak> rakudo: sub foo(@a is copy) { @a ||= -1, -1, +1, +1; say @a }; foo([1,2,3,4]); say "alive" <p6eval> rakudo 188755: OUTPUT«alive» * masak submits rakudobug <masak> jnthn: I'm expecting &foo to output something. <jnthn> er, yeah, me too. :/ <jnthn> is it the is copy? <masak> this feels familiar... * masak czechs <masak> I might have been remembering http://rt.perl.org/rt3/Ticket/Display.html?id=74430 <jnthn> looks related. <masak> yeah. <masak> this goes in too, though. <jnthn> Please add a ref to the other ticket. <masak> sure thing :) <jnthn> rakudo: sub foo(@a) { say PARROT(@a) }; sub bar(@a is copy) { say PARROT(@a) }; foo([1,2]); bar([1,2]) <p6eval> rakudo 188755: OUTPUT«ObjectRef->ObjectRef->ArrayArray» <jnthn> FAIL