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

Make dotty assignment .= work with non-identifier postfixes #3251

Open
p6rt opened this issue Oct 18, 2013 · 2 comments
Open

Make dotty assignment .= work with non-identifier postfixes #3251

p6rt opened this issue Oct 18, 2013 · 2 comments
Labels
RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Oct 18, 2013

Migrated from rt.perl.org#120272 (status was 'new')

Searchable as RT120272$

@p6rt
Copy link
Author

p6rt commented Oct 18, 2013

From @Mouq

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␤␤»

@p6rt
Copy link
Author

p6rt commented Oct 27, 2013

From @masak

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

@p6rt p6rt added the RFC Request For Comments label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant