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

The presence of an overloaded postcircumfix:<{ }> operator causes Rakudo to emit variable redeclaration false positives #1420

Closed
p6rt opened this issue Nov 29, 2009 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 29, 2009

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

Searchable as RT70922$

@p6rt
Copy link
Author

p6rt commented Nov 29, 2009

From @masak

<masak> rakudo​: class A { method postcircumfix​:<{ }>() {} }; my &r = {
my $a }; if 0 { if 0 { my $a } }
<p6eval> rakudo 7347ec​: Redeclaration of variable $a␤
* masak submits rakudobug
<jnthn> masak​: wow, nicely golfed
<masak> jnthn​: it's a really wonky bug.

@p6rt
Copy link
Author

p6rt commented Nov 29, 2009

From @masak

<masak> rakudo​: class A { method postcircumfix​:<{ }>() {} }; my &r = {;}; if 0 { if 0 { my $a } }
<p6eval> rakudo 7347ec​: Redeclaration of variable $a␤
<masak> this is worse than I first thought.
<masak> now there are not even two declarations of the variable.
* masak amends the RT ticket

@p6rt
Copy link
Author

p6rt commented Nov 29, 2009

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

@p6rt
Copy link
Author

p6rt commented Apr 19, 2010

From @jnthn

On Sun Nov 29 12​:25​:14 2009, masak wrote​:

<masak> rakudo​: class A { method postcircumfix​:<{ }>() {} }; my &r =
{;}; if 0 { if 0 { my $a } }
<p6eval> rakudo 7347ec​: Redeclaration of variable $a␤
<masak> this is worse than I first thought.
<masak> now there are not even two declarations of the variable.
* masak amends the RT ticket

Seems in latest Rakudo this is no longer a problem; giving to moritz++
for spectests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Apr 20, 2010

From @moritz

Tested in t/spec/S06-operator-overloading/methods.t.

@p6rt
Copy link
Author

p6rt commented Apr 20, 2010

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

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