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

'temp undefined' does more than it should in Rakudo #3117

Closed
p6rt opened this issue Apr 27, 2013 · 4 comments
Closed

'temp undefined' does more than it should in Rakudo #3117

p6rt opened this issue Apr 27, 2013 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 27, 2013

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

Searchable as RT117777$

@p6rt
Copy link
Author

p6rt commented Apr 27, 2013

From @masak

<lizmat> masak​: isn't this a rakudo bug?
<lizmat> r​: my $a="foo"; { temp undefine $a; say $a }; say $a
<camelia> rakudo 71ea14​: OUTPUT«(Any)␤Cannot assign to a readonly
variable or a value␤ in block at /tmp/lGIFzmiUSK​:1␤␤»
<masak> huh.
<masak> I... don't know. I think so.
<masak> but I can't internalize what happens there.
<masak> where does the "readonly" come from?
<lizmat> r​: my $a="foo"; { temp $a= (Any); say $a }; say $a
<camelia> rakudo 71ea14​: OUTPUT«(Any)␤foo␤»
<lizmat> seems like "undefine" is maybe doing more than it should
<masak> yeah.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

From @Mouq

This was fixed in Rakudo commit e84f7180e5 ( rakudo/rakudo@e84f7180e5 ) and tests were added in Roast commit 9a695d3c72 ( Raku/roast@9a695d3c72 )

Closing this ticket as resolved :)

~Mouq

@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

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

@p6rt p6rt closed this as completed Mar 12, 2015
@p6rt
Copy link
Author

p6rt commented Mar 12, 2015

@Mouq - 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