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

>>~>> with a List of Pair on the left gets confused and starts talking about the Pairs being immutable in Rakudo #4700

Closed
p6rt opened this issue Oct 31, 2015 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Oct 31, 2015

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

Searchable as RT126510$

@p6rt
Copy link
Author

p6rt commented Oct 31, 2015

From @masak

<masak> m​: say <a b c> >>>> "foo"
<camelia> rakudo-moar 36c4c6​: OUTPUT«(afoo bfoo cfoo)␤»
<masak> m​: say (​:a, :b, :c) >>
>> "foo"
<camelia> rakudo-moar 36c4c6​: OUTPUT«Cannot modify an immutable Pair [...]
<masak> I don't understand this error -- could someone enlighten me?
<masak> m​: say :a ~ "foo"
<camelia> rakudo-moar 36c4c6​: OUTPUT«a Truefoo␤»
<TimToady> m​: say (​:a, :b, :c) X~ "foo"
<camelia> rakudo-moar 36c4c6​: OUTPUT«(a Truefoo b Truefoo c
  Truefoo)␤»
<TimToady> seems specific to hypers
* masak submits >>~>> rakudobug

@usev6
Copy link

usev6 commented Oct 11, 2023

There is no error anymore:

$ ./rakudo-m -e 'say (:a, :b, :c) >>~>> "foo"'
(a => Truefoo b => Truefoo c => Truefoo)

bisectable6 (https://colabti.org/irclogger/irclogger_log/raku-dev?date=2023-10-10#l85) points to rakudo/rakudo@674a083705 for giving the current result.

I've created a PR for roast to add a test for this issue: Raku/roast#844

@usev6
Copy link

usev6 commented Oct 21, 2023

I've merged the mentioned PR now. Closing as "resolved".

@usev6 usev6 closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants