[perl #126477] [GLR] .assuming on sub with is copy parameter fails

2017-09-14 Thread Brian S. Julin via RT
On Thu, 11 Aug 2016 09:24:31 -0700, coke wrote: > On Wed Oct 28 13:40:45 2015, gfldex wrote: > > sub foo(@a is copy, :$flag){ say @a }; > > my @a = 1,2; > > (&foo.assuming(:flag))(@a); > > > > # OUTPUT«replace this Array is copy logic␤ in sub __PRIMED_ANON at > > EVAL_2:2␤ in sub __PRIMED_ANON

[perl #126477] [glr] .assuming on sub with is copy parameter fails

2016-08-11 Thread Will Coleda via RT
On Wed Oct 28 13:40:45 2015, gfldex wrote: > sub foo(@a is copy, :$flag){ say @a }; > my @a = 1,2; > (&foo.assuming(:flag))(@a); > > # OUTPUT«replace this Array is copy logic␤ in sub __PRIMED_ANON at > EVAL_2:2␤ in sub __PRIMED_ANON at > EVAL_2:1␤ in block at /tmp/TlcJQPUFbc:1␤ Coming from:

[perl #126477] [glr] .assuming on sub with is copy parameter fails

2015-10-28 Thread via RT
# New Ticket Created by Wenzel Peppmeyer # Please include the string: [perl #126477] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126477 > sub foo(@a is copy, :$flag){ say @a }; my @a = 1,2; (&foo.assuming(:flag))(@a); # O