Skip Menu |
Report information
Id: 120272
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Mouq <alexmoquin [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Dotty assignment (<.=>) doesn't work with prefixes
Date: Fri, 18 Oct 2013 17:21:29 -0400
To: rakudobug [...] perl.org
From: Alex Moquin <alexmoquin [...] gmail.com>
Download (untitled) / with headers
text/plain 914b
17:11 <Mouq> r: my $a .= ++; say $a
17:11 <camelia> rakudo 455467: OUTPUT«No such method '&postfix:<++>'
                for invocant of type 'Any'␤  in method dispatch:<.=> at
                src/gen/CORE.setting:1127␤  in block  at
                /tmp/XiTAa5iKur:1␤␤»
17:11 <Mouq> r: my $a .= --; say $a
17:11 <camelia> rakudo 455467: OUTPUT«No such method '&postfix:<-->'
                for invocant of type 'Any'␤  in method dispatch:<.=> at
                src/gen/CORE.setting:1127␤  in block  at
                /tmp/ei3KpLGpwF:1␤␤»

17:16 <Mouq> r: sub postfix:<!> (\f) { [*] 1..f }; my $n = 4; say $n.!;
             $n .= !; say $n;
17:16 <camelia> rakudo 455467: OUTPUT«24␤No such method '&postfix:<!>'
                for invocant of type 'Int'␤  in method dispatch:<.=> at
                src/gen/CORE.setting:1127␤  in block  at
                /tmp/FmTDH49Yug:1␤␤»
From: Carl Mäsak <cmasak [...] gmail.com>
Date: Sun, 27 Oct 2013 21:11:56 +0100
To: rakudobug [...] perl.org
Subject: [BUG] @a.=[@ixs] no longer works in Rakudo
Download (untitled) / with headers
text/plain 814b
<masak> I have a regression to report. <masak> std: my @a = 0..4; @a.=[1, 2]; say @a <camelia> std 8adbc60: OUTPUT«ok 00:01 127m␤» <masak> rn: my @a = 0..4; @a.=[1, 2]; say @a <camelia> niecza v24-98-g473bd20: OUTPUT«1 2␤» <camelia> ..rakudo-jvm 882e33: OUTPUT«===SORRY!=== Error while compiling /tmp/UuTtIcx5t8␤Cannot use .= on a non-identifier method call␤at /tmp/UuTtIcx5t8:1␤------> my @a = 0..4; @a.=[1, 2]⏏; say @a␤» <camelia> ..rakudo-parrot bec62b: OUTPUT«===SORRY!=== Error while compiling /tmp/Ayfc4RauXB␤Cannot use .= on a non-identifier method call␤at /tmp/Ayfc4RauXB:1␤------> my @a = 0..4; @a.=[1, 2]⏏; say @a␤» * masak submits rakudobug <masak> I'm pretty sure @a.=[1, 2]; used to work, because I have recent code that uses it, and just broke when I upgraded Rakudo.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org