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

Can put an anonymous array in lhs of assignment in Rakudo #2919

Closed
p6rt opened this issue Oct 15, 2012 · 4 comments
Closed

Can put an anonymous array in lhs of assignment in Rakudo #2919

p6rt opened this issue Oct 15, 2012 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 15, 2012

Migrated from rt.perl.org#115274 (status was 'rejected')

Searchable as RT115274$

@p6rt
Copy link
Author

p6rt commented Oct 15, 2012

From @masak

<masak> r​: []=5; say "alive"
<p6eval> rakudo 8a07b8​: OUTPUT«alive␤»
* masak submits rakudobug
<masak> r​: [1, 2, 3] = 5; say "alive"
<p6eval> rakudo 8a07b8​: OUTPUT«alive␤»
<masak> r​: say ([1, 2, 3] = 5)
<p6eval> rakudo 8a07b8​: OUTPUT«5␤»
<masak> well, that has a certain logic to it :P
<masak> still, that assignment shouldn't be legal, methinks.

@p6rt
Copy link
Author

p6rt commented Sep 20, 2015

From @jnthn

On Mon Oct 15 07​:05​:00 2012, masak wrote​:

<masak> r​: []=5; say "alive"
<p6eval> rakudo 8a07b8​: OUTPUT«alive␤»
* masak submits rakudobug
<masak> r​: [1, 2, 3] = 5; say "alive"
<p6eval> rakudo 8a07b8​: OUTPUT«alive␤»
<masak> r​: say ([1, 2, 3] = 5)
<p6eval> rakudo 8a07b8​: OUTPUT«5␤»
<masak> well, that has a certain logic to it :P
<masak> still, that assignment shouldn't be legal, methinks.

Post-GLR, [...] is precisely creating a new, mutable, Array, not even wrapping it in any kind of Scalar container. Given that, there's nothing we can really do to prevent this. So, rejecting.

@p6rt
Copy link
Author

p6rt commented Sep 20, 2015

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

@p6rt
Copy link
Author

p6rt commented Sep 20, 2015

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

@p6rt p6rt closed this as completed Sep 20, 2015
@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