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

Doing list assignment to a hash puts only the first pair into the hash in Rakudo #1683

Closed
p6rt opened this issue Apr 12, 2010 · 4 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 12, 2010

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

Searchable as RT74302$

@p6rt
Copy link
Author

p6rt commented Apr 12, 2010

From @masak

<masak> rakudo​: my @​a = "!", a => "1", b => "2", c => "3"; my ($name,
%opts) = @​a; say %opts.perl
<p6eval> rakudo 0334df​: OUTPUT«{"a" => "1"}␤»
* masak submits rakudobug
<moritz_> huh?
<masak> I'd expect all pairs to go in %opts.
<masak> they did in alpha.
<masak> probably workaroundable.
<masak> rakudo​: my @​a = "!", a => "1", b => "2", c => "3"; my %opts =
@​a[1..@​a-1]; say %opts.perl
<p6eval> rakudo 0334df​: OUTPUT«{"a" => "1", "b" => "2", "c" => "3"}␤»
<masak> yup :)

@p6rt
Copy link
Author

p6rt commented Jan 19, 2011

From @felliott

Hello,

This works in recent rakudo, and I've added a test for it to
S03-operators/assign.t. I believe it can be marked as 'resolved'.

Cheers,
Fitz Elliott

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 19, 2011

From @felliott

Hello,

This works in recent rakudo, and I've added a test for it to
S03-operators/assign.t. I believe it can be marked as 'resolved'.

Cheers,
Fitz Elliott

@p6rt
Copy link
Author

p6rt commented Jan 19, 2011

@masak - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jan 19, 2011
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant