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

list assignment to a constant doesn't flatten #3538

Closed
p6rt opened this issue Oct 3, 2014 · 4 comments
Closed

list assignment to a constant doesn't flatten #3538

p6rt opened this issue Oct 3, 2014 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 3, 2014

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

Searchable as RT122895$

@p6rt
Copy link
Author

p6rt commented Oct 3, 2014

From kellydasovich@gmail.com

Not sure if this is actually a rakudobug or a specbug, but it is definitely
surprising and unsettling.

(my @​ = 'a', <b c>)[1].perl.say;
# "b"

(constant @​ = 'a', <b c>)[1].perl.say;
# ("b", "c")

perl6 -v
# This is perl6 version 2014.09-81-g89abcf2 built on MoarVM version
2014.09-12-gb9e24ee

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

From @coke

On Fri Oct 03 13​:29​:43 2014, kellydasovich@​gmail.com wrote​:

Not sure if this is actually a rakudobug or a specbug, but it is definitely
surprising and unsettling.

(my @​ = 'a', <b c>)[1].perl.say;
# "b"

(constant @​ = 'a', <b c>)[1].perl.say;
# ("b", "c")

perl6 -v
# This is perl6 version 2014.09-81-g89abcf2 built on MoarVM version
2014.09-12-gb9e24ee

This behavior is changing​:

06​:17 < [Coke]> m​: (my @​ = 'a', <b c>)[1].perl.say; (constant @​ = 'a', <b c>)[1].perl.say;
06​:17 < GLRelia> rakudo-moar 00a34b​: OUTPUT«("b", "c")␤("b", "c")␤»
06​:17 <+camelia> rakudo-moar 5fb81f​: OUTPUT«"b"␤("b", "c")␤»

GLR shows the glr branch, camelia is the current behavior on nom.

The behavior going forward won't flatten it either case, and is consistent between the two.

Passing glr tests added S04-declarations/constant.t; Closing case.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

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

@p6rt p6rt closed this as completed Aug 29, 2015
@p6rt
Copy link
Author

p6rt commented Aug 29, 2015

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

@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