Skip Menu |
Report information
Id: 60620
Status: resolved
Priority: 0/
Queue: perl6

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

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



Subject: @a[1].=subst parsefail
Date: Mon, 17 Nov 2008 22:48:42 +0100
To: rakudobug [...] perl.org
From: "Carl Mäsak" <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 147b
Rakudo r32733: <masak> rakudo: my @a; @a[0].=subst( '', '') <polyglotbot> OUTPUT[PAST::Compiler can't compile a null node␤current instr.: [...]
RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 580b
On Mon Nov 17 13:49:03 2008, masak wrote: Show quoted text
> Rakudo r32733: > > <masak> rakudo: my @a; @a[0].=subst( '', '') > <polyglotbot> OUTPUT[PAST::Compiler can't compile a null node␤current > instr.: > [...]
Ah, yes, .= was only handling a scalar on the LHS. Thanks to PAST enhancements since I first implemented .=, it was nice and easy to refactor it into something that'd do the right thing... Show quoted text
> my @a = 'abc'; @a[0] .= subst('b','d'); say @a[0]
adc Show quoted text
> my %h = x => 'abc'; %h<x> .= subst('b','d'); say %h<x>
adc Committed in r33225, plus added tests into assign.t. Thanks, Jonathan


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