Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@a[1].=subst parsefail #413

Closed
p6rt opened this issue Nov 17, 2008 · 4 comments
Closed

@a[1].=subst parsefail #413

p6rt opened this issue Nov 17, 2008 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Nov 17, 2008

Migrated from rt.perl.org#60620 (status was 'resolved')

Searchable as RT60620$

@p6rt
Copy link
Author

p6rt commented Nov 17, 2008

From @masak

Rakudo r32733​:

<masak> rakudo​: my @​a; @​a[0].=subst( '', '')
<polyglotbot> OUTPUT[PAST​::Compiler can't compile a null node␤current instr.​:
[...]

@p6rt
Copy link
Author

p6rt commented Nov 26, 2008

From @jnthn

On Mon Nov 17 13​:49​:03 2008, masak wrote​:

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...

my @​a = 'abc'; @​a[0] .= subst('b','d'); say @​a[0]
adc
my %h = x => 'abc'; %h<x> .= subst('b','d'); say %h<x>
adc

Committed in r33225, plus added tests into assign.t.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Nov 26, 2008

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Nov 26, 2008

@jnthn - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 26, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant