[perl #77660] [BUG] X*= doesn't modify the original array in Rakudo

2012-10-21 Thread Will Coleda via RT
On Mon Oct 10 16:25:45 2011, coke wrote: > On Thu Sep 02 20:55:52 2010, masak wrote: > > rakudo: my @a = 1, 2, 3; @a X*= 5; say @a.perl; @a = @a X* 5; > > say @a.perl; > > rakudo 33e94e: OUTPUT«[1, 2, 3]␤[5, 10, 15]␤» > > Should X*= have worked? If not, how to best scale a vector > > without rep

[perl #77660] [BUG] X*= doesn't modify the original array in Rakudo

2011-10-10 Thread Will Coleda via RT
On Thu Sep 02 20:55:52 2010, masak wrote: > rakudo: my @a = 1, 2, 3; @a X*= 5; say @a.perl; @a = @a X* 5; > say @a.perl; > rakudo 33e94e: OUTPUT«[1, 2, 3]␤[5, 10, 15]␤» > Should X*= have worked? If not, how to best scale a vector > without repeating the vector's array name? > @b = @a X* 5 > :P

[perl #77660] [BUG] X*= doesn't modify the original array in Rakudo

2010-09-02 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #77660] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=77660 > rakudo: my @a = 1, 2, 3; @a X*= 5; say @a.perl; @a = @a X* 5; say @a.perl; rakudo 33e9