# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #77660]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77660 >


<Util> rakudo: my @a = 1, 2, 3; @a X*= 5; say @a.perl; @a = @a X* 5;
say @a.perl;
<p6eval> rakudo 33e94e: OUTPUT«[1, 2, 3]␤[5, 10, 15]␤»
<Util> Should X*= have worked? If not, how to best scale a vector
without repeating the vector's array name?
<masak> @b = @a X* 5
<masak> :P
<masak> and yes, I think X*= should have worked.
* masak submits rakudobug
<tylercurtis> rakudo: my @a = 1, 2, 3; @a [X*]= 5; say @a.perl; @a =
@a X* 5; say @a.perl;
<p6eval> rakudo 33e94e: OUTPUT«===SORRY!===␤Confused at line 22, near
"@a [X*]= 5"␤»
<Util> S03 discusses X[+=] vs [X+]= in "Nesting of metaoperators", but
X[*=] does the same as X*= , and [X*]= fails.
<Util> Oh, as tylercurtis just showed.

Reply via email to